Skip to content

Commit 06d9950

Browse files
committed
Fix checking exit code of happy path test
1 parent cb13216 commit 06d9950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/che-happy-path.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ oc rsync -n ${CHE_NAMESPACE} ${HAPPY_PATH_POD_NAME}:/tmp/e2e/report/ /tmp/e2e -c
9595
oc exec -n ${CHE_NAMESPACE} ${HAPPY_PATH_POD_NAME} -c download-reports -- touch /tmp/done
9696
cp -r /tmp/e2e ${ARTIFACT_DIR}
9797
EXIT_CODE=$(oc logs -n ${CHE_NAMESPACE} ${HAPPY_PATH_POD_NAME} -c happy-path-test | grep EXIT_CODE)
98-
if [[ ${EXIT_CODE} == "+ EXIT_CODE=1" ]]; then
98+
if [[ ${EXIT_CODE} != "+ EXIT_CODE=0" ]]; then
9999
echo "[ERROR] Happy-path test failed."
100100
exit 1
101101
fi

0 commit comments

Comments
 (0)