about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-14 16:40:10 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-14 16:40:10 +0200
commit6a66b79fb6b85f01aeaa1cd339160957a98c97a6 (patch)
tree4906ecfd957718fbb6a87c19b4fff59660290f04 /src/bootstrap
parent7510b0ca45d1204f8f0e9dc1bb2dc7d95b279c9a (diff)
Allow to run only a few GUI tests
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/test.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index fe4666effe6..0b7a0e25df1 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -805,7 +805,7 @@ impl Step for RustdocGUI {
 
     fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
         let builder = run.builder;
-        let run = run.path("src/test/rustdoc-gui");
+        let run = run.suite_path("src/test/rustdoc-gui");
         run.default_condition(
             builder.config.nodejs.is_some()
                 && builder
@@ -870,6 +870,13 @@ impl Step for RustdocGUI {
             .arg(out_dir)
             .arg("--tests-folder")
             .arg(builder.build.src.join("src/test/rustdoc-gui"));
+        for path in &builder.paths {
+            if let Some(name) = path.file_name().and_then(|f| f.to_str()) {
+                if name.ends_with(".goml") {
+                    command.arg("--file").arg(name);
+                }
+            }
+        }
         builder.run(&mut command);
     }
 }