Fix empty env prefix in e2e workflow
This commit is contained in:
parent
2c81192299
commit
377d62e8fe
1 changed files with 15 additions and 6 deletions
21
.github/workflows/test-e2e.yml
vendored
21
.github/workflows/test-e2e.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue