From efe1388625b3258e4894cda74e621eff04bb7406 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 15 Mar 2023 09:19:15 -0700 Subject: [PATCH] Put testlog in temp directory (#1895) This way this gets deleted automatically and we don't have to worry about disk space growth which matters on CI if you have many test bundles. --- apple/testing/default_runner/ios_xctestrun_runner.template.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apple/testing/default_runner/ios_xctestrun_runner.template.sh b/apple/testing/default_runner/ios_xctestrun_runner.template.sh index 297462a2d..1acc8142b 100755 --- a/apple/testing/default_runner/ios_xctestrun_runner.template.sh +++ b/apple/testing/default_runner/ios_xctestrun_runner.template.sh @@ -13,7 +13,7 @@ if [[ -n "${DEBUG_XCTESTRUNNER:-}" ]]; then set -x fi -create_xcresult_bundle=%(create_xcresult_bundle)s +create_xcresult_bundle="%(create_xcresult_bundle)s" if [[ -n "${CREATE_XCRESULT_BUNDLE:-}" ]]; then create_xcresult_bundle=true fi @@ -234,7 +234,7 @@ simulator_id="$("./%(simulator_creator.py)s" \ )" test_exit_code=0 -testlog=$(mktemp) +readonly testlog=$test_tmp_dir/test.log test_file=$(file "$test_tmp_dir/$test_bundle_name.xctest/$test_bundle_name") intel_simulator_hack=false