From d078741456bacf08e2bc3e5d6cda58c2d16ef029 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Dec 2017 22:16:19 +0100 Subject: Fix direction of test failure diffs --- wscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wscript b/wscript index 2044e25b..f4918936 100644 --- a/wscript +++ b/wscript @@ -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: -- cgit v1.2.1