diff options
author | Ally Donaldson <unknown> | 2014-05-27 20:31:56 +0100 |
---|---|---|
committer | Ally Donaldson <unknown> | 2014-05-27 20:31:56 +0100 |
commit | 858c77d6c370e13c9ac0960250ba1be1f80becbd (patch) | |
tree | 19fa746c86e4a83e217d285c7a3c8fddd63f6540 /Test/lit.site.cfg | |
parent | b36ca0d44cc409a60b2424c74b0f1e2ada6a6c70 (diff) | |
parent | 75416c24e78d9992c10fbb86ba458e813acf943d (diff) |
Merge
Diffstat (limited to 'Test/lit.site.cfg')
-rw-r--r-- | Test/lit.site.cfg | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Test/lit.site.cfg b/Test/lit.site.cfg index 9cd85ef6..e103edde 100644 --- a/Test/lit.site.cfg +++ b/Test/lit.site.cfg @@ -111,13 +111,16 @@ else: lit_config.warning('Skipping solver sanity check on Windows') # Add diff tool substitution +commonDiffFlags=' --unified=3 --strip-trailing-cr --ignore-all-space' diffExecutable = None if os.name == 'posix': - diffExecutable = 'diff --unified=3 --strip-trailing-cr --ignore-all-space' + diffExecutable = 'diff' + commonDiffFlags elif os.name == 'nt': - diffExecutable = 'fc /W' + pydiff = os.path.join(config.test_source_root, 'pydiff.py') + diffExecutable = sys.executable + ' ' + pydiff + commonDiffFlags else: lit_config.fatal('Unsupported platform') +lit_config.note("Using diff tool '{}'".format(diffExecutable)) config.substitutions.append( ('%diff', diffExecutable )) |