Skip to content

Commit

Permalink
examples: Print log file if there is any
Browse files Browse the repository at this point in the history
  • Loading branch information
aleino-nv committed Jan 3, 2025
1 parent 1062f75 commit 1bfebf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ function run_sample {
pushd "$bin_dir" 1>/dev/null 2>&1
if [[ ! "$dry_run" = true ]]; then
./"$sample" "${args[@]}" || result=$?
if [[ -f ./"log-$sample.txt" ]]; then
cat ./"log-$sample.txt"
fi
fi
if [[ $result -eq 0 ]]; then
summary=("${summary[@]}" " success")
Expand Down

0 comments on commit 1bfebf9

Please sign in to comment.