@@ -31,22 +31,6 @@ def __init__(self, coverage_mode=None, execute_external=True):
31
31
self .skipped_tests = set ()
32
32
33
33
def before_test (self , test , litConfig ):
34
- _ , tmp_base = lit .TestRunner .getTempPaths (test )
35
-
36
- # Apparently despite the docs, tmpDir is not actually unique for each
37
- # test, but tmpBase is. Remove it here and add a tmpBase substitution
38
- # in before_test. Speculative fix for rdar://32928464.
39
- try :
40
- percentT_index = \
41
- [x [0 ] for x in test .config .substitutions ].index ('%T' )
42
- except ValueError :
43
- pass
44
- else :
45
- test .config .substitutions .pop (percentT_index )
46
-
47
- test .config .substitutions .append (
48
- ('%T' , '$(mkdir -p %r && echo %r)' % (tmp_base , tmp_base )))
49
-
50
34
if self .coverage_mode :
51
35
# FIXME: The compiler crashers run so fast they fill up the
52
36
# merger's queue (and therefore the build bot's disk)
@@ -56,7 +40,9 @@ def before_test(self, test, litConfig):
56
40
return
57
41
58
42
if self .coverage_mode == "NOT_MERGED" :
59
- profdir = tmp_base + '.profdir'
43
+ execpath = test .getExecPath ()
44
+ profdir = os .path .join (os .path .dirname (execpath ), "Output" ,
45
+ os .path .basename (execpath ) + '.profdir' )
60
46
if not os .path .exists (profdir ):
61
47
os .makedirs (profdir )
62
48
0 commit comments