]> www.infradead.org Git - users/hch/blktests.git/commitdiff
check: Make "device-only" option a valid option
authorAndré Almeida <andrealmeid@collabora.com>
Wed, 30 Oct 2019 22:27:05 +0000 (19:27 -0300)
committerOmar Sandoval <osandov@fb.com>
Wed, 13 Nov 2019 18:17:55 +0000 (10:17 -0800)
"--device-only" option is described at the "Usage" help message and it's
even parsed as an option by the main code. However, since it's not a
parameter of getopt, when trying to use it will trigger a "unrecognized
option". Fix that to allow usage of this option.

Signed-off-by: André Almeida <andrealmeid@collabora.com>
check

diff --git a/check b/check
index 981058c59c12bb0148e3c7b46cf4f0b61db0c749..a19b9dc65d1e476cc4a13f55a6f6b2db9dc88ef1 100755 (executable)
--- a/check
+++ b/check
@@ -650,7 +650,7 @@ Miscellaneous:
        esac
 }
 
-if ! TEMP=$(getopt -o 'do:q::x:h' --long 'quick::,exclude:,output:,help' -n "$0" -- "$@"); then
+if ! TEMP=$(getopt -o 'do:q::x:h' --long 'device-only,quick::,exclude:,output:,help' -n "$0" -- "$@"); then
        exit 1
 fi