ne propose pas les logs si tests reussis
This commit is contained in:
10
unitests.sh
10
unitests.sh
@@ -225,10 +225,14 @@ DEFAULT_DIR="./tests/defaults/"
|
||||
|
||||
# ask to show the diff
|
||||
# -rsn1 will stop read after first key pressed
|
||||
read -rsn1 -p 'if you want to see the diff, press "y"' DIFF
|
||||
if [[ "${DIFF,,}" == y ]]
|
||||
|
||||
if [ $TOTAL_SUCCESS -lt $TOTAL_TEST ]
|
||||
then
|
||||
diff -y --width=100 --color=always "$BASH_LOG" "$MINISHELL_LOG"
|
||||
read -rsn1 -p 'if you want to see the diff, press "y"' DIFF
|
||||
if [[ "${DIFF,,}" == y ]]
|
||||
then
|
||||
diff -y --width=100 --color=always "$BASH_LOG" "$MINISHELL_LOG"
|
||||
fi
|
||||
fi
|
||||
|
||||
# delete files created during tests
|
||||
|
||||
Reference in New Issue
Block a user