Include timing information for each self-check task.
@@ -131,23 +131,33 @@ do
fi
echo -n "Attempting Test ${TEST}..."
+
+ START_TS=$(date +%s)
st2 run ${TEST} protocol=${PROTOCOL} token=${ST2_AUTH_TOKEN} | grep "status" | grep -q "succeeded"
+ END_TS=$(date +%s)
+ DURATION=$(expr ${END_TS} - ${START_TS})
+
if [ $? -ne 0 ]; then
- echo -e "ERROR!"
+ echo -e "ERROR! (${DURATION}s)"
((ERRORS++))
else
- echo "OK!"
+ echo "OK! (${DURATION}s)"
fi
done
if [ ${RUN_MISTRAL_TESTS} = "true" ]; then
echo -n "Attempting Example examples.mistral_examples..."
+
+ START_TS=$(date +%s)
st2 run examples.mistral_examples | grep "status" | grep -q "succeeded"
+ END_TS=$(date +%s)
+ DURATION=$(expr ${END_TS} - ${START_TS})
+
if [ $? -ne 0 ]; then
- echo -e "ERROR!"
+ echo -e "ERROR! (${DURATION}s)"
((ERRORS++))
else
- echo "OK!"
+ echo "OK! (${DURATION}s)"
fi
else
echo "Skipping examples.mistral_examples..."
@@ -155,12 +165,17 @@ fi
if [ ${RUN_ORQUESTA_TESTS} = "true" ]; then
echo -n "Attempting Example examples.orquesta-examples..."
+
+ START_TS=$(date +%s)
st2 run examples.orquesta-examples | grep "status" | grep -q "succeeded"
+ END_TS=$(date +%s)
+ DURATION=$(expr ${END_TS} - ${START_TS})
+
if [ $? -ne 0 ]; then
- echo -e "ERROR!"
+ echo -e "ERROR! (${DURATION}s)"
((ERRORS++))
else
- echo "OK!"
+ echo "OK! (${DURATION}s)"
fi
else
echo "Skipping examples.orquesta-examples..."
