testsuite: change exit code to 98 for FATAL decompression checksum mismatchs.

This commit is contained in:
Markus F.X.J. Oberhumer 2021-03-28 22:06:42 +02:00
parent 53d7b5449f
commit ab31e8dde9

View File

@ -58,7 +58,7 @@ testsuite_check_sha() {
exit_code=99 exit_code=99
let num_errors+=1 || true let num_errors+=1 || true
all_errors="${all_errors} $1" all_errors="${all_errors} $1"
#exit 1 #exit 99
fi fi
echo echo
} }
@ -69,7 +69,7 @@ testsuite_check_sha_decompressed() {
cat $1/.sha256sums.current cat $1/.sha256sums.current
echo "UPX-ERROR: FATAL: $1 FAILED: decompressed checksum mismatch" echo "UPX-ERROR: FATAL: $1 FAILED: decompressed checksum mismatch"
diff -u $1/.sha256sums.expected $1/.sha256sums.current || true diff -u $1/.sha256sums.expected $1/.sha256sums.current || true
exit 1 exit 98
fi fi
} }