The return code is initialized to fail if /testok is not found, but
that also covers the case where all tests are skipped.
if [[ -s "$workspace/skipped" ]]; then
echo "=== Skipped test log =="
cat "$workspace/skipped"
+ # We might have only skipped tests - that should not fail the job
+ ret=0
fi
if [[ -s "$workspace/testok" ]]; then
echo "=== Passed tests ==="
if [[ -s "$initdir/skipped" ]]; then
echo "=== Skipped test log =="
cat "$initdir/skipped"
+ # We might have only skipped tests - that should not fail the job
+ ret=0
fi
if [[ -s "$initdir/testok" ]]; then
echo "=== Passed tests ==="