From ad1338e7688033c99b6e89804f4ac01abb3fa633 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Thu, 20 Aug 2015 18:16:04 +0200 Subject: [PATCH] Fixed line endings before comparing outputs --- samples/tests/run_test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/tests/run_test.sh b/samples/tests/run_test.sh index 501da79..8d81472 100755 --- a/samples/tests/run_test.sh +++ b/samples/tests/run_test.sh @@ -13,6 +13,8 @@ else sh -c "$bin_dir/$*" > $out_dir/$1.out 2> $out_dir/$1.err fi +dos2unix $out_dir/$1.err $out_dir/$1.out + if [ -f $cmp_dir/$1.out.expected ] && [ "$(md5sum $out_dir/$1.out | cut -d' ' -f1)" != "$(md5sum $cmp_dir/$1.out.expected | cut -d' ' -f1)" ]; then diff $out_dir/$1.out $cmp_dir/$1.out.expected exit 255