summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-12-15 12:02:37 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-12-15 12:02:37 +0300
commite7da0b54557a7ddfc32e8d7866b01d0b577d0e9f (patch)
tree996332ff1e3cd2c5655bafd5ab3f58b6c7dbf59b /travis
parent763cad619dc21fd55df93d0294d4cd46b50e437e (diff)
downloadnasm-e7da0b54557a7ddfc32e8d7866b01d0b577d0e9f.tar.gz
test: nasm-t -- Reverse the comparision order
Comparing new and old data is inconvenient since it rathe shows the reverse diff. Use straight direction instead. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rwxr-xr-xtravis/nasm-t.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/travis/nasm-t.py b/travis/nasm-t.py
index aed1bfb0..14171c19 100755
--- a/travis/nasm-t.py
+++ b/travis/nasm-t.py
@@ -337,7 +337,7 @@ def test_run(desc):
match_data = read_stdfile(match)
if match_data == None:
return test_fail(test, "Can't read " + match)
- if cmp_std('stdout', stdout, match, match_data) == False:
+ if cmp_std(match, match_data, 'stdout', stdout) == False:
return test_fail(desc['_test-name'], "Stdout mismatch")
else:
stdout = ""
@@ -347,7 +347,7 @@ def test_run(desc):
match_data = read_stdfile(match)
if match_data == None:
return test_fail(test, "Can't read " + match)
- if cmp_std('stderr', stderr, match, match_data) == False:
+ if cmp_std(match, match_data, 'stderr', stderr) == False:
return test_fail(desc['_test-name'], "Stderr mismatch")
else:
stderr = ""