Skip to content

Commit

Permalink
Dump logs when e2e fails in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Sep 10, 2023
1 parent a758230 commit e36c6d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ test: $(BUILD_DIRS)
/bin/sh -c " \
./build/test.sh ./... \
"
./test_e2e.sh
VERBOSE=1 ./test_e2e.sh

TEST_TOOLS := $(shell find _test_tools/* -type d -printf "%f ")
test-tools: $(foreach tool, $(TEST_TOOLS), .container-test_tool.$(tool))
Expand Down
7 changes: 7 additions & 0 deletions test_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3377,6 +3377,13 @@ for t; do
if [[ "$RUN_RET" != 42 ]]; then
echo "FAIL: unknown error"
fi
if [[ -n "${VERBOSE:-}" ]]; then
echo -ne "\n\n"
echo "LOG ----------------------"
cat "${LOG}.${RUN}"
echo "--------------------------"
echo -ne "\n\n"
fi
fi
remove_containers || true
RUN=$((RUN+1))
Expand Down

0 comments on commit e36c6d2

Please sign in to comment.