Skip to content

Commit

Permalink
docker: exec $CMD
Browse files Browse the repository at this point in the history
This is the last command to run (unless DEBUG), make it 'exec' to
simplify the process tree.

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1474429768-25027-10-git-send-email-famz@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
  • Loading branch information
Fam Zheng committed Sep 23, 2016
1 parent 97cba1a commit 9b77336
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/docker/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b77336

Please sign in to comment.