FIX: add way of completely skipping test that bugged with jessie

Tests are stored in a bash indexed array.
Bash on debian8 does not support arrays declaration and if there was no
registered tests, the array variable was seen as undefined.
With this way of completely dismissing the test suite, the problem is
fixed
This commit is contained in:
Charles Herlin
2019-01-30 11:06:49 +01:00
parent 2dd753e5e7
commit aa3983c6d0
2 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,10 @@ contain()
fi
}
dismiss_test() {
dismiss_test=1
}
# test is expected to fail (for instance on blank system)
# then the test wont be taken into account for test suite success
dismiss_count_for_test() {