Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions apple/testing/default_runner/macos_test_runner.template.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -eu
#!/bin/bash

set -euo pipefail

# Copyright 2017 The Bazel Authors. All rights reserved.
#
Expand Down Expand Up @@ -149,11 +151,12 @@ rm -rf "$result_bundle_path"

test_exit_code=0
readonly testlog="$TEST_TMP_DIR/test.log"

# Run xcodebuild with the xctestrun file just created. If the test failed, this
# command will return non-zero, which is enough to tell bazel that the test
# failed.
xcodebuild test-without-building \
-destination "platform=macOS" \
-destination "platform=macOS,variant=macos,arch=$(uname -m)" \
-resultBundlePath "$result_bundle_path" \
-xctestrun "$XCTESTRUN" \
2>&1 | tee -i "$testlog" \
Expand Down