diff --git a/runtest.sh b/runtest.sh index c008e89..e835a99 100755 --- a/runtest.sh +++ b/runtest.sh @@ -21,11 +21,12 @@ aide() { cat <&1 | traiter_test + if [[ $KILL -eq 1 ]] + then + eval ${COMMEXEC} 2>&1 | traiter_test + else + eval ${COMMEXEC} + fi elif [[ $# -gt 0 ]] # exécuter les tests passés en arguments then @@ -122,7 +133,12 @@ then do echo "Tester « $test »" COMMEXEC="${COMMANDE} -f \"$test\" ${TESTFILE}" - eval ${COMMEXEC} 2>&1 | traiter_test + if [[ $KILL -eq 1 ]] + then + eval ${COMMEXEC} 2>&1 | traiter_test + else + eval ${COMMEXEC} + fi done else # Afficher les noms des suites de tests @@ -147,7 +163,12 @@ else COMMEXEC="${COMMANDE} -f \"$test\" ${TESTFILE}" CURIFS=$IFS IFS=$OLDIFS - eval ${COMMEXEC} 2>&1 | traiter_test + if [[ $KILL -eq 1 ]] + then + lstmeval ${COMMEXEC} 2>&1 | traiter_test + else + eval ${COMMEXEC} + fi IFS=$CURIFS done IFS=$OLDIFS