WIP Option to skip Mistral & Orquesta tests
@@ -19,21 +19,31 @@ function usage() {
echo "Usage: $0"
echo ""
echo "Options:"
+ echo " -o Skip Orquesta tests"
+ echo " -m Skip Mistral tests"
echo " -w Run Windows tests"
echo " -b Which branch of st2tests to use (defaults to master)"
echo ""
>&2
}
+RUN_ORQUESTA_TESTS=true
+RUN_MISTRAL_TESTS=true
RUN_WINDOWS_TESTS=false
ST2_TESTS_BRANCH="master"
-while getopts "b:w" o
+while getopts "b:wom" o
do
case "${o}" in
b)
ST2_TESTS_BRANCH=${OPTARG}
;;
+ o)
+ RUN_ORQUESTA_TESTS=false
+ ;;
+ m)
+ RUN_MISTRAL_TESTS=false
+ ;;
w)
RUN_WINDOWS_TESTS=true
;;
@@ -114,6 +124,12 @@ do
continue
fi
+ # Skip Mistral Inquiry test if we're not running Mistral tests
+ if [ ${RUN_MISTRAL_TESTS} = "false" ] && [ ${TEST} = "tests.test_inquiry_mistral" ]; then
+ echo "Skipping ${TEST}..."
+ continue
+ fi
+
echo -n "Attempting Test ${TEST}..."
st2 run ${TEST} protocol=${PROTOCOL} token=${ST2_AUTH_TOKEN} | grep "status" | grep -q "succeeded"
if [ $? -ne 0 ]; then
@@ -124,6 +140,7 @@ do
fi
done
+if [ ${RUN_MISTRAL_TESTS} = "true" ]; then
echo -n "Attempting Example examples.mistral_examples..."
st2 run examples.mistral_examples | grep "status" | grep -q "succeeded"
if [ $? -ne 0 ]; then
@@ -132,7 +149,11 @@ if [ $? -ne 0 ]; then
else
echo "OK!"
fi
+else
+ echo "Skipping examples.mistral_examples..."
+fi
+if [ ${RUN_ORQUESTA_TESTS} = "true" ]; then
echo -n "Attempting Example examples.orquesta-examples..."
st2 run examples.orquesta-examples | grep "status" | grep -q "succeeded"
if [ $? -ne 0 ]; then
@@ -141,6 +162,9 @@ if [ $? -ne 0 ]; then
else
echo "OK!"
fi
+else
+ echo "Skipping examples.orquesta-examples..."
+fi
if [ $ERRORS -ne 0 ]; then
echo "SELF CHECK FAILED!"
