about summary refs log tree commit diff
path: root/src/ci/github-actions
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2024-11-13 08:06:53 +0300
committeronur-ozkan <work@onurozkan.dev>2024-11-13 08:13:06 +0300
commit13d59eca9a77e8cedaeac552b360c95f53dccf6d (patch)
tree81ca86b767c5cbbf9bd8925cc63cfe23030181c1 /src/ci/github-actions
parentf5b62577f79396979585ee98ed3a52594207bce7 (diff)
downloadrust-13d59eca9a77e8cedaeac552b360c95f53dccf6d.tar.gz
rust-13d59eca9a77e8cedaeac552b360c95f53dccf6d.zip
use `--exact` on `--skip` to avoid unintended substring matches
Without the `--exact` flag, using `--skip tests/rustdoc` can unintentionally skip other
tests that match as substrings such as `rustdoc-gui`, `rustdoc-js`, etc.

For debugging, run: `./x.py --stage 2 test rustdoc-ui --skip tests/rustdoc` and
`./x.py --stage 2 test rustdoc-ui --skip tests/rustdoc -- --exact`

Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src/ci/github-actions')
-rw-r--r--src/ci/github-actions/jobs.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/github-actions/jobs.yml b/src/ci/github-actions/jobs.yml
index 340dfd67b7d..82ba3f587e2 100644
--- a/src/ci/github-actions/jobs.yml
+++ b/src/ci/github-actions/jobs.yml
@@ -48,7 +48,7 @@ runners:
 
 envs:
   env-x86_64-apple-tests: &env-x86_64-apple-tests
-    SCRIPT: ./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc
+    SCRIPT: ./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc -- --exact
     RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc
     RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
     MACOSX_DEPLOYMENT_TARGET: 10.12