From 5abe2d76496406ad5ccfa4470a4a08c895da94f2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Sep 2018 20:12:08 +0200 Subject: Fix order of test failure diffs --- wscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wscript b/wscript index 7afa6a66..9c8663ab 100644 --- a/wscript +++ b/wscript @@ -316,10 +316,10 @@ def test(ctx): import sys def test_file_equals(path1, path2): - diff = list(difflib.unified_diff(open(path2).readlines(), - open(path1).readlines(), - path2, - path1)) + diff = list(difflib.unified_diff(open(path1).readlines(), + open(path2).readlines(), + path1, + path2)) autowaf.run_test(ctx, APPNAME, [path2, len(diff) != 0]) if len(diff) > 0: for line in diff: -- cgit v1.2.1