Update run.sh

This commit is contained in:
Loic Guegan 2022-08-31 20:17:57 +02:00
parent f924c939ef
commit d9fb7fc2e3

View file

@ -21,7 +21,7 @@ do
# Ensure timeout # Ensure timeout
if [ $? -eq 124 ] if [ $? -eq 124 ]
then then
echo -e "${RED}${BOLD}failed${NC}" printf "${RED}${BOLD}failed${NC}\n"
echo "------------- Test timeout (should not exceed ${test_timeout}s) -------------" echo "------------- Test timeout (should not exceed ${test_timeout}s) -------------"
cat "$out"; cat "$out";
rm "$out" rm "$out"
@ -31,9 +31,9 @@ do
# Ensure test output # Ensure test output
if [ "$(base64 $out)" = "$(base64 ./out)" ] if [ "$(base64 $out)" = "$(base64 ./out)" ]
then then
echo -e "${GREEN}${BOLD}passed${NC}" printf "${GREEN}${BOLD}passed${NC}\n"
else else
echo -e "${RED}${BOLD}failed${NC}" printf "${RED}${BOLD}failed${NC}\n"
echo "------------- Expected -------------" echo "------------- Expected -------------"
cat out cat out
echo "------------- Got -------------" echo "------------- Got -------------"