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="" ...@@ -161,6 +161,7 @@ PID=""
PIDNS="" PIDNS=""
ITERATIONS=1 ITERATIONS=1
EXCLUDE_PATTERN=""
PAGE_SERVER=0 PAGE_SERVER=0
PS_PORT=12345 PS_PORT=12345
...@@ -294,6 +295,8 @@ run_test() ...@@ -294,6 +295,8 @@ run_test()
local test=$1 local test=$1
local linkremap= local linkremap=
[ -n "$EXCLUDE_PATTERN" ] && echo $test | grep "$EXCLUDE_PATTERN" && return 0
# #
# add option for unlinked files test # add option for unlinked files test
if [[ $1 =~ "unlink_" ]]; then if [[ $1 =~ "unlink_" ]]; then
...@@ -479,6 +482,12 @@ while :; do ...@@ -479,6 +482,12 @@ while :; do
PAGE_SERVER=1 PAGE_SERVER=1
continue; continue;
fi fi
if [ "$1" = "-x" ]; then
shift
EXCLUDE_PATTERN=$1
shift
continue;
fi
break; break;
done done
...@@ -512,6 +521,7 @@ Options: ...@@ -512,6 +521,7 @@ Options:
-i : Number of ITERATIONS of dump/restore -i : Number of ITERATIONS of dump/restore
-p : Test page server -p : Test page server
-b <commit> : Check backward compatibility -b <commit> : Check backward compatibility
-x <PATTERN>: Exclude pattern
EOF EOF
elif [ "${1:0:1}" = '-' ]; then elif [ "${1:0:1}" = '-' ]; then
echo "unrecognized option $1" 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