Skip to content

Commit

Permalink
Correct junit file detection (#39)
Browse files Browse the repository at this point in the history
* loop through plugins

* fix accidental refactors

* fix accidental refactors

* actually use parallel files for parallel check

* dont use an array
  • Loading branch information
mjholder authored Oct 27, 2023
1 parent dc3b340 commit dc5161a
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions cji_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -193,22 +193,10 @@ 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 PLUGIN in ${IQE_PLUGINS//,/ }; do
JUNIT_SEQUENTIAL_OUTPUTS=(
"iqe-${PLUGIN}-sequential.log"
"junit-${PLUGIN}-sequential.xml"
)

for file in "${JUNIT_SEQUENTIAL_OUTPUTS[@]}"; do
Expand All @@ -217,7 +205,21 @@ if [ "$IQE_PARALLEL_ENABLED" = "true" ]; then
exit 1
fi
done
fi

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

for file in "${JUNIT_PARALLEL_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
done

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

0 comments on commit dc5161a

Please sign in to comment.