From 366320b1d6bd6788204f21718b9facecf87ccdec Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 19 Nov 2016 23:13:02 +0100 Subject: [PATCH] Enhance consistency in test log. --- test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index cf6e60c..26d4f33 100755 --- a/test.sh +++ b/test.sh @@ -13,8 +13,8 @@ fi diff_test() { - generated_file="$1" - expected_file="$2" + expected_file="$1" + generated_file="$2" printf "== %s diff test ==\n" "$generated_file" diff "$expected_file" "$generated_file" if [ "$?" = "0" ]; then @@ -49,5 +49,5 @@ cat "$original_file" | \ sed 's/>[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}T[0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}ZIGNOREurn:uuid:[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}urn:uuid:IGNORE "$generated_file" -diff_test "$generated_file" "$expected_file" +diff_test "$expected_file" "$generated_file" rm "$generated_file" -- 2.30.2