Skip to content

Commit 123de20

Browse files
Merge pull request #2517 from estesp/fix-travis-script
Fix loss of CRI test failure status in CI
2 parents efb04a3 + 9622369 commit 123de20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ script:
7474
sudo PATH=$PATH containerd -log-level debug &> /tmp/containerd-cri.log &
7575
sudo ctr version ;
7676
sudo PATH=$PATH GOPATH=$GOPATH critest --runtime-endpoint=/var/run/containerd/containerd.sock --parallel=8 ;
77-
test $? -ne 0 && cat /tmp/containerd-cri.log ;
77+
TEST_RC=$? ;
78+
test $TEST_RC -ne 0 && cat /tmp/containerd-cri.log ;
7879
sudo pkill containerd ;
80+
test $TEST_RC -eq 0 || /bin/false ;
7981
fi
8082

8183
after_success:

0 commit comments

Comments
 (0)