about summary refs log tree commit diff
path: root/src/ci/scripts
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-04-26 14:25:41 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-26 10:34:19 +0200
commit3994406eca352f3545f5d50272c06c650295b6c2 (patch)
treea5fde1a3f8546f58e74e9c7e6f7c2e5e24ae943e /src/ci/scripts
parentfbf1b1a7193cda17008ab590e06ad28d9924023b (diff)
downloadrust-3994406eca352f3545f5d50272c06c650295b6c2.tar.gz
rust-3994406eca352f3545f5d50272c06c650295b6c2.zip
Enforce rustdoc-gui test-suite run
Diffstat (limited to 'src/ci/scripts')
-rwxr-xr-xsrc/ci/scripts/should-skip-this.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ci/scripts/should-skip-this.sh b/src/ci/scripts/should-skip-this.sh
index 631a7b247d5..469f234e410 100755
--- a/src/ci/scripts/should-skip-this.sh
+++ b/src/ci/scripts/should-skip-this.sh
@@ -26,6 +26,10 @@ elif ! git diff --quiet "$BASE_COMMIT" -- src/tools/clippy src/tools/rustfmt; th
     # There is not an easy blanket search for subtrees. For now, manually list
     # the subtrees.
     echo "Executing the job since clippy or rustfmt subtree was updated"
+elif (git diff --name-only HEAD^ | grep --quiet src/test/rustdoc-gui) || \
+     (git diff --name-only HEAD^ | grep --quiet src/librustdoc); then
+    # There was a change in either rustdoc or in its GUI tests.
+    echo "Executing the job since rustdoc was updated"
 else
     echo "Not executing this job since no submodules nor subtrees were updated"
     ciCommandSetEnv SKIP_JOB 1