From 5ad7b8f029e5fdefdda3c67a6be936cc341a1021 Mon Sep 17 00:00:00 2001 From: Daniel Somerfield Date: Tue, 21 Nov 2023 09:19:35 -0800 Subject: [PATCH] Fix toolkit to run workspace on 'check pr' (issue #10906) (#11112) - Fixes #10906 No rust changes, just tookit.nu. When `check pr` is run, it should now run with the `--workspace` argument so all tests are run. --- toolkit.nu | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/toolkit.nu b/toolkit.nu index 1a3896a9d3..12166c1880 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -267,9 +267,17 @@ export def "check pr" [ print $"running ('toolkit test' | pretty-format-command)" try { if $fast { - test --features $features --fast + if ($features | is-empty) { + test --workspace --fast + } else { + test --features $features --fast + } } else { - test --features $features + if ($features | is-empty) { + test --workspace + } else { + test --features $features + } } } catch { return (report --fail-test)