Skip to content

Commit

Permalink
chore: show log content while testcase failing
Browse files Browse the repository at this point in the history
Signed-off-by: Zhou Zhiqiang <im@strrl.dev>
  • Loading branch information
STRRL committed Jun 11, 2024
1 parent 80e5b45 commit ffba074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration_test/chaosctl/debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ file_must_contains $log_file "\[chaos-dashboard" true
echo "Checking chaosctl debug networkchaos"
./bin/chaosctl debug networkchaos web-show-network-delay >$log_file 2>&1
if [ $? -ne 0 ]; then
echo "chaosctl debug networkchaos failed"
echo "chaosctl debug networkchaos failed, exit code: $?, log file: $log_file"
echo "log file content:"
cat $log_file
code=1
fi
file_must_contains $log_file "\[Chaos\]: web-show-network-delay" true
Expand Down

0 comments on commit ffba074

Please sign in to comment.