Skip to content

Commit

Permalink
Remove empty XHarness logs (#7418)
Browse files Browse the repository at this point in the history
Since we added few more log files which are sometimes empty (app's `.err.log` for example), let's not upload them to Helix
  • Loading branch information
premun committed May 21, 2021
1 parent 96098ac commit dfc3d94
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ if [ -z "$targets" ]; then
die "No targets were provided";
fi

if [ -z "$output_directory" ]; then
die "No output directory provided";
fi

if [ -z "$xharness_cli_path" ]; then
die "XHarness path wasn't provided";
fi
Expand Down Expand Up @@ -156,6 +160,9 @@ fi
# The simulator logs comming from the sudo-spawned Simulator.app are not readable by the helix uploader
chmod 0644 "$output_directory"/*.log

# Remove empty files
find "$output_directory" -name "*.log" -maxdepth 1 -size 0 -print -delete

if [ "$command" == 'test' ]; then
test_results=$(ls "$output_directory"/xunit-*.xml)

Expand Down

0 comments on commit dfc3d94

Please sign in to comment.