diff options
author | David Robillard <d@drobilla.net> | 2017-12-16 22:16:19 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-16 22:16:19 +0100 |
commit | d078741456bacf08e2bc3e5d6cda58c2d16ef029 (patch) | |
tree | c62393529859308e91a08f347596cee9d5de9eaf | |
parent | 37e4ae0ddaf61655a7f1698c36bf0bb3a6b2e99c (diff) | |
download | ingen-d078741456bacf08e2bc3e5d6cda58c2d16ef029.tar.gz ingen-d078741456bacf08e2bc3e5d6cda58c2d16ef029.tar.bz2 ingen-d078741456bacf08e2bc3e5d6cda58c2d16ef029.zip |
Fix direction of test failure diffs
-rw-r--r-- | wscript | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -310,10 +310,10 @@ def test(ctx): import sys def test_file_equals(path1, path2): - diff = list(difflib.unified_diff(open(path1).readlines(), - open(path2).readlines(), - path1, - path2)) + diff = list(difflib.unified_diff(open(path2).readlines(), + open(path1).readlines(), + path2, + path1)) autowaf.run_test(ctx, APPNAME, [path2, len(diff) != 0]) if len(diff) > 0: for line in diff: |