[CRIU] [PATCH 2/3] zdtm.sh: add ability to exclude some tests
Andrey Vagin
avagin at openvz.org
Fri May 17 05:59:13 EDT 2013
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
test/zdtm.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/test/zdtm.sh b/test/zdtm.sh
index a242b7c..7817df5 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -161,6 +161,7 @@ PID=""
PIDNS=""
ITERATIONS=1
+EXCLUDE_PATTERN=""
PAGE_SERVER=0
PS_PORT=12345
@@ -294,6 +295,8 @@ run_test()
local test=$1
local linkremap=
+ [ -n "$EXCLUDE_PATTERN" ] && echo $test | grep "$EXCLUDE_PATTERN" && return 0
+
#
# add option for unlinked files test
if [[ $1 =~ "unlink_" ]]; then
@@ -479,6 +482,12 @@ while :; do
PAGE_SERVER=1
continue;
fi
+ if [ "$1" = "-x" ]; then
+ shift
+ EXCLUDE_PATTERN=$1
+ shift
+ continue;
+ fi
break;
done
@@ -512,6 +521,7 @@ Options:
-i : Number of ITERATIONS of dump/restore
-p : Test page server
-b <commit> : Check backward compatibility
+ -x <PATTERN>: Exclude pattern
EOF
elif [ "${1:0:1}" = '-' ]; then
echo "unrecognized option $1"
--
1.8.2
More information about the CRIU
mailing list