Skip to content

Commit

Permalink
Fix log upload in case of zombienet test failure (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk authored Aug 5, 2024
1 parent af48359 commit 28fb313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflow-templates/zombienet-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:
shell: bash
run: |
ls -ltr /tmp
latest_zombie_dir=$(find /tmp -type d -iname "*zombie*" -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" ")
latest_zombie_dir=$(find /tmp -type d -iname "*zombie*" -printf '%T@ %p\n' 2>/dev/null | sort -n | tail -1 | cut -f2- -d" " || true)
logs_dir="logs"
mkdir -p "$logs_dir"
find "$latest_zombie_dir" -type f -name "*.log" -exec cp {} "$logs_dir" \;
Expand Down

0 comments on commit 28fb313

Please sign in to comment.