Commit 3a93bee9 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm.sh: add ability to exclude some tests

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 635005b1
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment