Fixed line endings before comparing outputs

This commit is contained in:
Snaipe 2015-08-20 18:16:04 +02:00
parent 0520a36723
commit ad1338e768

View file

@ -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