mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-25 05:07:05 +00:00
test(ios): capture intermittent transcript layout diagnostics (#2325)
* test(ios): capture intermittent transcript layout diagnostics * fix(ci): keep iPad diagnostics running after failures * ci: retry iOS diagnostics after transient simulator failures
This commit is contained in:
@@ -17,7 +17,13 @@ print(max(items, key=lambda x: tuple(map(int, x["version"].split("."))))["identi
|
||||
device=$(xcrun simctl create "HAPI Transcript Tests" "$device_type" "$runtime")
|
||||
trap 'xcrun simctl delete "$device" >/dev/null 2>&1 || true' EXIT
|
||||
|
||||
result_bundle_args=()
|
||||
if [[ -n "${HAPI_TEST_RESULT_BUNDLE_PATH:-}" ]]; then
|
||||
result_bundle_args=(-resultBundlePath "$HAPI_TEST_RESULT_BUNDLE_PATH")
|
||||
fi
|
||||
|
||||
xcodebuild test -project ios/Hapi.xcodeproj -scheme Hapi \
|
||||
-destination "platform=iOS Simulator,id=$device" \
|
||||
-derivedDataPath "${HAPI_TEST_DERIVED_DATA:-/tmp/hapi-transcript-tests}" \
|
||||
-parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO "$@"
|
||||
-parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO \
|
||||
${result_bundle_args[@]+"${result_bundle_args[@]}"} "$@"
|
||||
|
||||
Reference in New Issue
Block a user