Commit d95ee2e
committed
Add support for setting system language of newly created simulator
This adds a new `--simulator_language` argument that accepts a
two-letter language code, which will be used to set the simulator's
system language at startup time. Simulator language can be specified by
passing `["--simulator_language", "<language-code>"]` to
`ios_unit_test`/`ios_ui_test`'s
[`args`](https://bazel.build/reference/be/common-definitions#common-attributes-tests)
attribute.
Note that because this needs to kill all booted simulator's SpringBoard
to reload the new language setting, avoid setting this if you run
tests on multiple simulators simultanously.
Based on https://gist.github.com/koke/e3106e4531e40d2ba423b76ad789caff.1 parent 24ba151 commit d95ee2e
File tree
2 files changed
+21
-3
lines changed- simulator_control
- test_runner
2 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
123 | 130 | | |
124 | 131 | | |
125 | 132 | | |
| |||
305 | 312 | | |
306 | 313 | | |
307 | 314 | | |
308 | | - | |
| 315 | + | |
309 | 316 | | |
310 | 317 | | |
311 | 318 | | |
| |||
663 | 670 | | |
664 | 671 | | |
665 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
666 | 680 | | |
667 | 681 | | |
668 | 682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
0 commit comments