Skip to content

Commit

Permalink
Ensure JUnit tests pass (#30)
Browse files Browse the repository at this point in the history
* check there are IQE CJI artifacts from tests
  • Loading branch information
mjholder authored Oct 26, 2023
1 parent 9d7af6e commit e3fe8f0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions cji_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,33 @@ if [ "$MINIO_SUCCESS" = false ]; then
exit 1
fi

echo "checking if files exist"

JUNIT_SEQUENTIAL_OUTPUTS=(
"iqe-${CJI_NAME}-sequential.log"
"junit-${CJI_NAME}-sequential.xml"
)

for file in "${JUNIT_SEQUENTIAL_OUTPUTS[@]}"; do
if [ ! -e "$ARTIFACTS_DIR/$file" ]; then
echo "The file $file does not exist. CJI Test(s) may have failed."
exit 1
fi
done

if [ "$IQE_PARALLEL_ENABLED" = "true" ]; then
JUNIT_PARALLEL_OUTPUTS=(
"iqe-${CJI_NAME}-parallel.log"
"junit-${CJI_NAME}-parallel.xml"
)

for file in "${JUNIT_SEQUENTIAL_OUTPUTS[@]}"; do
if [ ! -e "$ARTIFACTS_DIR/$file" ]; then
echo "The file $file does not exist. CJI Test(s) may have failed."
exit 1
fi
done
fi

echo "copied artifacts from iqe pod: "
ls -l $ARTIFACTS_DIR

0 comments on commit e3fe8f0

Please sign in to comment.