Allow running only a single test

If the environment variable RUN_JUST_ONE is set then skip any test
which is not numerically equal to it.

Signed-off-by: Icarus Sparry <icarus.w.sparry@intel.com>
This commit is contained in:
Icarus Sparry
2017-05-09 16:43:19 -07:00
committed by tmarcu
parent ce594a6529
commit 850e6b9a92
+5
View File
@@ -40,6 +40,11 @@ EOF
done
}
# If the variable RUN_JUST_ONE is set then only run that test
maybeskip() {
[ -z "$RUN_JUST_ONE" ] || [ "$RUN_JUST_ONE" -eq "$BATS_TEST_NUMBER" ] || skip
}
set_os_release() {
local ver=$1
local bundle=$2