support for ignored versions

This commit is contained in:
Shlomi Noach 2018-02-26 15:22:50 +02:00
parent 0a32d822f8
commit df9dd49a47
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1 @@
(5.5|5.6)

View File

@ -0,0 +1 @@
(5.5|5.6)

View File

@ -83,6 +83,15 @@ test_single() {
local test_name local test_name
test_name="$1" test_name="$1"
if [ -f $tests_path/$test_name/ignore_versions ] ; then
ignore_versions=$(cat $tests_path/$test_name/ignore_versions)
mysql_version=$(gh-ost-test-mysql-master -s -s -e "select @@version")
if echo "$mysql_version" | egrep "$ignore_versions" ; then
echo "ignoring"
return 0
fi
fi
echo -n "Testing: $test_name" echo -n "Testing: $test_name"
echo_dot echo_dot