diff options
-rwxr-xr-x | tests/docker/run | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/docker/run b/tests/docker/run index ed7dd312f8..c1e4513bce 100755 --- a/tests/docker/run +++ b/tests/docker/run @@ -57,14 +57,17 @@ cd "$QEMU_SRC/tests/docker" CMD="$QEMU_SRC/tests/docker/$@" -if test -n "$DEBUG"; then - echo "* Prepared to run command:" - echo " $CMD" - echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort" - echo - $SHELL +if test -z "$DEBUG"; then + exec $CMD fi +# DEBUG workflow +echo "* Prepared to run command:" +echo " $CMD" +echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort" +echo +$SHELL + if "$CMD"; then exit 0 elif test -n "$DEBUG"; then |