From: Alex Bennée Date: Wed, 1 Jul 2020 13:56:28 +0000 (+0100) Subject: tests/docker: check for an parameters not empty string X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=10c927dcc5075c317187fa525021af5d6a1f511e;p=qemu.git tests/docker: check for an parameters not empty string Reported-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Suggested-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20200701135652.1366-17-alex.bennee@linaro.org> --- diff --git a/tests/docker/common.rc b/tests/docker/common.rc index 02cd67a8c5..ebc5b97ecf 100755 --- a/tests/docker/common.rc +++ b/tests/docker/common.rc @@ -47,7 +47,7 @@ build_qemu() check_qemu() { # default to make check unless the caller specifies - if test -z "$@"; then + if [ $# = 0 ]; then INVOCATION="check" else INVOCATION="$@"