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 }