From 26b7630c75aba9d8c3db67bb42980918057af8ce Mon Sep 17 00:00:00 2001 From: hugogogo Date: Sun, 19 Dec 2021 12:31:07 +0100 Subject: [PATCH] nom des fichiers plus lisibles malgre le chemin absolu --- unitests.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/unitests.sh b/unitests.sh index 6ac33fa..2d72a2f 100644 --- a/unitests.sh +++ b/unitests.sh @@ -259,17 +259,18 @@ cd $(dirname $0) for i in $LIST_FILES do filename=$i - echo -e "\n"$B_YELLOW"test file : $i"$ENDCO + echo -e "\n"$B_YELLOW"test file : ${filename##*/}"$ENDCO command_test="" LINE_NUMBER=0 last_line_number=$(wc -l < $filename) UNIT_TEST=0 SUCCESS_TEST=0 # write name of file in log files - echo -en $B_YELLOW "\n\n\nfile: $filename\n" $ENDCO >>$BASH_LOG - echo -en $B_YELLOW "\n\n\nfile: $filename\n" $ENDCO >>$MINISHELL_LOG + echo -en $B_YELLOW "\n\n\nfile: ${filename##*/}\n" $ENDCO >>$BASH_LOG + echo -en $B_YELLOW "\n\n\nfile: ${filename##*/}\n" $ENDCO >>$MINISHELL_LOG read_commands - print_results $i $SUCCESS_TEST $UNIT_TEST + # '##' print from the right untill... '*/' s slash + print_results ${filename##*/} $SUCCESS_TEST $UNIT_TEST done }