From 3669ba800ebb061d5c05a1b97894ea7c61760683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Mon, 24 Sep 2018 09:38:57 +0200 Subject: [PATCH] Tests should fail if the OS filename argument is missing. --- test/bochs.sh | 1 + test/dosbox.sh | 1 + test/gui-sh-mac.sh | 1 + test/gui-sh.sh | 1 + test/qemu-system-i386-cdrom.sh | 1 + test/qemu-system-i386-floppy.sh | 1 + test/virtualbox.sh | 1 + 7 files changed, 7 insertions(+) diff --git a/test/bochs.sh b/test/bochs.sh index 9ddebcd..cfbcb27 100755 --- a/test/bochs.sh +++ b/test/bochs.sh @@ -3,6 +3,7 @@ set -e if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then echo "Usage: $0 operating_system_file" + exit 1 fi os_filename="$1" diff --git a/test/dosbox.sh b/test/dosbox.sh index 9f5571d..767802d 100755 --- a/test/dosbox.sh +++ b/test/dosbox.sh @@ -3,6 +3,7 @@ set -e if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then echo "Usage: $0 operating_system_file" + exit 1 fi os_filename="$1" diff --git a/test/gui-sh-mac.sh b/test/gui-sh-mac.sh index 7659996..e9f12b8 100755 --- a/test/gui-sh-mac.sh +++ b/test/gui-sh-mac.sh @@ -3,6 +3,7 @@ set -e if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then echo "Usage: $0 operating_system_file" + exit 1 fi # Force the path to be relative or absolute, but with at least one / # Otherwise, the command will be searched in the $PATH, instead of using the diff --git a/test/gui-sh.sh b/test/gui-sh.sh index 8326c52..5fc2480 100755 --- a/test/gui-sh.sh +++ b/test/gui-sh.sh @@ -3,6 +3,7 @@ set -e if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then echo "Usage: $0 operating_system_file" + exit 1 fi # Force the path to be relative or absolute, but with at least one / # Otherwise, the command will be searched in the $PATH, instead of using the diff --git a/test/qemu-system-i386-cdrom.sh b/test/qemu-system-i386-cdrom.sh index 0ac9ea4..e412b87 100755 --- a/test/qemu-system-i386-cdrom.sh +++ b/test/qemu-system-i386-cdrom.sh @@ -3,6 +3,7 @@ set -e if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then echo "Usage: $0 operating_system_file" + exit 1 fi os_filename="$1" diff --git a/test/qemu-system-i386-floppy.sh b/test/qemu-system-i386-floppy.sh index 9b0e7b6..fd57cdf 100755 --- a/test/qemu-system-i386-floppy.sh +++ b/test/qemu-system-i386-floppy.sh @@ -3,6 +3,7 @@ set -e if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then echo "Usage: $0 operating_system_file" + exit 1 fi os_filename="$1" diff --git a/test/virtualbox.sh b/test/virtualbox.sh index db152f8..73f6020 100755 --- a/test/virtualbox.sh +++ b/test/virtualbox.sh @@ -3,6 +3,7 @@ set -e if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then echo "Usage: $0 operating_system_file" + exit 1 fi os_filename="$1"