Skip to content

Commit

Permalink
debug: ignoring exit code 1 output for failed test execution to see d…
Browse files Browse the repository at this point in the history
…ocker-compose logs after failure
  • Loading branch information
usuletw022 committed Mar 26, 2024
1 parent 2c4db38 commit 6b971e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e_tests/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ run_tests() {
echo "Running test command..."
cd "$TEST_DIR"
# Run your command and redirect stderr to /dev/null
go test --tags=e2e -v ./... -count=1 2>/dev/null
go test --tags=e2e -v ./... -count=1
# Check the exit code of the command
if [ $? -ne 0 ]; then
echo "Error: Process completed with exit code 1 ignored."
Expand Down

0 comments on commit 6b971e0

Please sign in to comment.