Skip to content

Commit da87126

Browse files
author
Dave Abrahams
authored
Force the %T directory to exist when it is used.
1 parent 3a98ccf commit da87126

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/lit.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ class SwiftTest(lit.formats.ShTest, object):
154154
except ValueError: pass
155155
else:
156156
test.config.substitutions.pop(percentT_index)
157-
test.config.substitutions.append(('%T', tmp_base))
158-
157+
158+
test.config.substitutions.append(
159+
('%T', '$(mkdir -p %r && echo %r)' % (tmp_base, tmp_base)))
160+
159161
if self.coverage_mode:
160162
# FIXME: The compiler crashers run so fast they fill up the
161163
# merger's queue (and therefore the build bot's disk)

0 commit comments

Comments
 (0)