blob: 34f92feb28c90d4f117ae4804abc3a9c0c13b99f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--- a/tests/query-files/lit.cfg
+++ b/tests/query-files/lit.cfg
@@ -6,6 +6,7 @@ import os
import sys
import re
import platform
+import shutil
import lit.util
import lit.formats
@@ -107,12 +108,7 @@ lit_config.note('Using solver: {solver}\n'.format(solver=solverExecutable))
config.substitutions.append( ('%solver', solverExecutable) )
# Find OutputCheck
-OutputCheckTool = os.path.join( os.path.dirname( os.path.dirname( config.test_source_root ) ),
- 'deps',
- 'OutputCheck',
- 'bin',
- 'OutputCheck'
- )
+OutputCheckTool = shutil.which("OutputCheck")
if not os.path.exists(OutputCheckTool):
lit_config.fatal('Cannot find OutputCheck executable: {OutputCheck}'.format(OutputCheck=OutputCheckTool))
|