diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2016-05-11 14:39:38 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-05-13 11:36:12 +0200 |
commit | 722ac4645431cefd206b51b1bb328b637a26e8fc (patch) | |
tree | 911af85a965d6341f604a0d10f59ca13c188722f /tests/shell/run-tests.sh | |
parent | 684d62743dacfbc67b15e40dc7d6c922cae474a6 (diff) |
tests/shell/run-tests.sh: print hint about testcase being executed
Print a line with the name of the testcase being executed, and then delete it
with the result.
There are tests which may take a long time and its good to know what is doing
the testsuite.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/run-tests.sh')
-rwxr-xr-x | tests/shell/run-tests.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index 057f11ef..921080fe 100755 --- a/tests/shell/run-tests.sh +++ b/tests/shell/run-tests.sh @@ -74,8 +74,12 @@ do kernel_cleanup rc_spec=$(awk -F${RETURNCODE_SEPARATOR} '{print $NF}' <<< $testfile) + + msg_info "[EXECUTING] $testfile" test_output=$(NFT=$NFT ${testfile} ${TESTS_OUTPUT} 2>&1) rc_got=$? + echo -en "\033[1A\033[K" # clean the [EXECUTING] foobar line + if [ "$rc_got" == "$rc_spec" ] ; then msg_info "[OK] $testfile" [ "$VERBOSE" == "y" ] && [ ! -z "$test_output" ] && echo "$test_output" |