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 eec4fe6 commit 2c4db38
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions e2e_tests/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ check_health_endpoint() {
run_tests() {
echo "Running test command..."
cd "$TEST_DIR"
# go test --tags=e2e -v ./... -count=1
# Run your command and redirect stderr to /dev/null
go test --tags=e2e -v ./... -count=1 2>/dev/null
# Check the exit code of the command
if [ $? -ne 0 ]; then
echo "Error: Process completed with exit code 1 ignored."
fi
# TEST_RESULT=$?
mosquitto_sub -p 1884 -t 'everest_external/nodered/1/state/state_string'
docker-compose logs
cd "$CSMS_DIR"
docker-compose logs
Expand Down

0 comments on commit 2c4db38

Please sign in to comment.