X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fscripts%2Frun_in_venv_with_cleanup.sh;h=35b6737ecad9eab7bdb1dca526905bb6b36af401;hb=38e0413b2a7bf39a18045e6c6f528655f8354652;hp=541f584ac4528f201a8c6acaf4db923f32eb1cee;hpb=db4e84cf2f8de0909c3483c8cadb25ac72fb3367;p=vpp.git diff --git a/test/scripts/run_in_venv_with_cleanup.sh b/test/scripts/run_in_venv_with_cleanup.sh index 541f584ac45..35b6737ecad 100755 --- a/test/scripts/run_in_venv_with_cleanup.sh +++ b/test/scripts/run_in_venv_with_cleanup.sh @@ -14,7 +14,7 @@ atexit() { kill -9 $id fi done - exit $rv + exit ${rv} } trap "atexit;" SIGINT SIGTERM @@ -30,9 +30,10 @@ then $* else $* & - wait + pid=$! + wait ${pid} fi rv=$? atexit -exit $rv +exit ${rv}