Message ID | 146297037849.18781.5589442408869588727.stgit@nfdev2.cica.es |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
On Wed, May 11, 2016 at 02:39:38PM +0200, Arturo Borrero Gonzalez wrote: > 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. And also applied this. Thanks. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/tests/shell/run-tests.sh b/tests/shell/run-tests.sh index 057f11e..921080f 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"
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> --- tests/shell/run-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html