[CRIU] [PATCH 2/2] zdtm.sh: detect unrecognized options
Andrey Vagin
avagin at openvz.org
Fri Jan 11 04:55:41 EST 2013
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/zdtm.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/zdtm.sh b/test/zdtm.sh
index 511abd0..09097c6 100644
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -451,6 +451,8 @@ Options:
-i : Number of ITERATIONS of dump/restore
-b <commit> : Check backward compatibility
EOF
+elif [ "${1:0:1}" = '-' ]; then
+ echo "unrecognized option $1"
else
if echo $UTS_TEST_LIST | fgrep -qw $1; then
run_test $1 -n uts || case_error $1
--
1.7.11.7
More information about the CRIU
mailing list