File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 66 operatorhub-test :
77 runs-on : ubuntu-latest
88 env :
9- OP_TEST_CONTAINER_OPT : " -i "
9+ OP_TEST_CONTAINER_OPT : " "
1010 steps :
1111 - name : Set up Go env
1212 uses : actions/setup-go@v2
3030 cd go/src/github.com/${{ env.REPOSITORY }}
3131 make lint-prepare bundle-test
3232 shell : bash
33+ - name : Print test logs if failure
34+ if : ${{ failure() }}
35+ run : |
36+ cat /tmp/op-test/log.out
Original file line number Diff line number Diff line change @@ -98,7 +98,10 @@ if [[ $runTests -ne 0 ]]; then
9898 bash <( curl -sL https://cutt.ly/AEeucaw) \
9999 " $tests " \
100100 " ${OPERATOR_HUB} /${OPERATOR_NAME} /${OPERATOR_VERSION} "
101- echo $?
101+ # # Until the script is fixed https://github.com/redhat-openshift-ecosystem/operator-test-playbooks/pull/247
102+ tail -n 4 /tmp/op-test/log.out | grep " Failed with rc="
103+ exit_code=$?
104+ if [ $exit_code -eq 0 ]; then exit $exit_code ; fi # "Failed with rc=" was found in the logs
102105fi
103106
104107if [[ ! $dryRun && -z $GITHUB_TOKEN ]]; then
You can’t perform that action at this time.
0 commit comments