File tree 1 file changed +19
-5
lines changed 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 93
93
ARGS=(--ginkgo.skip 'SupplementalGroups|AppArmor|RunAsUser')
94
94
fi
95
95
96
+ set +o errexit
96
97
sudo -E PATH=$PATH critest \
97
98
--runtime-endpoint=unix:///var/run/crio/crio.sock \
98
99
--parallel=$(nproc) \
@@ -102,18 +103,31 @@ jobs:
102
103
--ginkgo.trace \
103
104
--ginkgo.vv \
104
105
"${ARGS[@]}"
106
+ TEST_RC=$?
107
+ set -o errexit
108
+
109
+ sudo journalctl --no-pager > journal.log
110
+ test $TEST_RC -ne 0 && cat journal.log
111
+ exit $TEST_RC
105
112
106
113
- name : Run crictl e2e tests
107
114
if : ${{matrix.suite == 'e2e'}}
115
+ shell : bash
108
116
run : |
117
+ set -euox pipefail
118
+
119
+ set +o errexit
109
120
sudo -E PATH=$PATH make test-e2e \
110
121
TESTFLAGS="-crictl-runtime-endpoint=unix://var/run/crio/crio.sock"
122
+ TEST_RC=$?
123
+ set -o errexit
111
124
112
- - name : Collect CRI-O logs
113
- run : sudo journalctl -u crio > cri-o.log
125
+ sudo journalctl --no-pager > journal.log
126
+ test $TEST_RC -ne 0 && cat journal.log
127
+ exit $TEST_RC
114
128
115
- - name : Upload CRI-O logs
129
+ - name : Upload logs
116
130
uses : actions/upload-artifact@v4
117
131
with :
118
- name : cri-o- ${{matrix.suite}}-${{matrix.oci-runtime}}-${{matrix.monitor}}-${{github.sha}}.log
119
- path : cri-o .log
132
+ name : ${{matrix.suite}}-${{matrix.oci-runtime}}-${{matrix.monitor}}-${{github.sha}}.log
133
+ path : journal .log
You can’t perform that action at this time.
0 commit comments