commit f5550f6ea939a48533941b0fccfeee7a0317b9ff
parent 1156d7886bf9e55ec40d82c3ca6d0d9ee2ce0634
Author: vaplv <vaplv@free.fr>
Date: Sun, 14 May 2023 11:34:54 +0200
Update the run_test function of the make.sh file
Redirect the error messages of the for loop to print only the defined
error message. This was partially the case since the error messages of
the test were already redirected. But if the test was interrupted due to
an assertion, segmentation error, user interrupt, etc., the for
directive printed its own error message. Now we redirect it to /dev/null
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/make.sh b/make.sh
@@ -34,9 +34,9 @@ run_test()
if ./"${test}" > /dev/null 2>&1; then
printf "\e[1;32mOK\e[m\n"
else
- printf "\e[1;31mErreur\e[m\n"
+ printf "\e[1;31mError\e[m\n"
fi
- done
+ done 2> /dev/null
}
clean_test()