-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More exhaustive assertions for native rule tag propagation tests
In `src/test/shell/bazel/tags_propagation_native_test.sh` * **`assert_contains_n "Command Line:" n output1`** `ExecutionInfo: {` is inappropriate as `TemplateExpand` also have execution info. * **`assert_contains_n "(local|no-cache|no-remote):" n output1`** Counting `n` increases confidence that all expected actions have the execution info they should have. e.g. tags propagated for tests, but not other actions when `--incompatible_allow_tags_propagation=false` * **`--experimental_allow_tags_propagation` -> `--incompatible_allow_tags_propagation`** Addresses warnings in test logs. Changes in `src/test/shell/unittest.bash` address a bug in `assert_contains_n` which on failure was using the wrong argument to refer to the input file. For consistency other places were also updated to use `$file` instead of the argument number. Closes #25050. PiperOrigin-RevId: 721731868 Change-Id: I3684b29df06539764be99f7db731cbe0efa0f913
- Loading branch information
1 parent
b17a37b
commit 73317d0
Showing
2 changed files
with
69 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters