bazelbuild / rules_apple

Bazel rules to build apps for Apple platforms.
Apache License 2.0
512 stars 269 forks source link

Fix the test_file location for UITests #2349

Closed codeman9 closed 10 months ago

codeman9 commented 10 months ago

UITests place their test file inside of a runner app PlugIns folder. This PR prevents a warning like the following:

++ file /tmp/bazel_tmp/test_tmp_dir/AddUserPluginUITests.xctest/AddUserPluginUITests
+ test_file='/tmp/bazel_tmp/test_tmp_dir/AddUserPluginUITests.xctest/AddUserPluginUITests: cannot open `/tmp/bazel_tmp/test_tmp_dir/AddUserPluginUITests.xctest/AddUserPluginUITests'\'' (No such file or directory)'
+ intel_simulator_hack=false
+ architecture=arm64
++ arch
+ [[ arm64 == arm64 ]]
+ [[ /tmp/bazel_tmp/test_tmp_dir/AddUserPluginUITests.xctest/AddUserPluginUITests: cannot open `/tmp/bazel_tmp/test_tmp_dir/AddUserPluginUITests.xctest/AddUserPluginUITests' (No such file or directory) != *arm64* ]]
+ intel_simulator_hack=true
+ architecture=x86_64

which seems to lock the architecture to x86_64 when running UI tests.

google-cla[bot] commented 10 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.