Fix empty env prefix in e2e workflow

This commit is contained in:
Lawrence Chen 2026-03-18 03:19:29 -07:00
parent 2c81192299
commit 377d62e8fe
No known key found for this signature in database

View file

@ -289,13 +289,22 @@ jobs:
fi
fi
XCODEBUILD_CMD=(
xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_DIR"
-disableAutomaticPackageResolution
-destination "platform=macOS"
-maximum-test-execution-time-allowance "$TEST_TIMEOUT"
$ONLY_TESTING
test
)
set +e
OUTPUT=$(env "${DISPLAY_ENV_PREFIX[@]}" xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_DIR" \
-disableAutomaticPackageResolution \
-destination "platform=macOS" \
-maximum-test-execution-time-allowance "$TEST_TIMEOUT" \
$ONLY_TESTING test 2>&1)
if [ "${#DISPLAY_ENV_PREFIX[@]}" -gt 0 ]; then
OUTPUT=$(env "${DISPLAY_ENV_PREFIX[@]}" "${XCODEBUILD_CMD[@]}" 2>&1)
else
OUTPUT=$("${XCODEBUILD_CMD[@]}" 2>&1)
fi
EXIT_CODE=$?
set -e