From 1e1dd4983eec68a73a17a4fe44780cf7f50b647a Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 2 Jun 2023 12:55:07 -0700 Subject: [PATCH] Generate a unique temporary directory name in the iOS scenario test script This ensures that a retry of this script on CI will not collide with the output directory of a previous run. --- testing/scenario_app/run_ios_tests.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testing/scenario_app/run_ios_tests.sh b/testing/scenario_app/run_ios_tests.sh index 0034a42e4899a..37ab3a76f11d0 100755 --- a/testing/scenario_app/run_ios_tests.sh +++ b/testing/scenario_app/run_ios_tests.sh @@ -45,7 +45,7 @@ SCENARIO_PATH=$SRC_DIR/out/$FLUTTER_ENGINE/scenario_app/Scenarios pushd . cd $SCENARIO_PATH -RESULT_BUNDLE_FOLDER="ios_scenario_xcresult" +RESULT_BUNDLE_FOLDER=$(mktemp -d ios_scenario_xcresult_XXX) RESULT_BUNDLE_PATH="${SCENARIO_PATH}/${RESULT_BUNDLE_FOLDER}" # Zip and upload xcresult to luci. @@ -61,8 +61,6 @@ zip_and_upload_xcresult_to_luci () { echo "Running simulator tests with Skia" echo "" -mktemp -d $RESULT_BUNDLE_PATH - if set -o pipefail && xcodebuild -sdk iphonesimulator \ -scheme Scenarios \ -resultBundlePath "$RESULT_BUNDLE_PATH/ios_scenario.xcresult" \