]> git.lizzy.rs Git - rust.git/commitdiff
Implement sequential execution
authorStefan Schindler <dns2utf8@estada.ch>
Mon, 28 Jun 2021 23:41:39 +0000 (01:41 +0200)
committerStefan Schindler <dns2utf8@estada.ch>
Mon, 9 Aug 2021 22:47:04 +0000 (00:47 +0200)
src/tools/rustdoc-gui/tester.js

index ca11c286ad37342692477f682189e943f73b83c3..69665693104a9c706d446cbc562112d4edb51bad 100644 (file)
@@ -84,7 +84,10 @@ async function main(argv) {
         process.exit(1);
     }
 
+    // Print successful tests too
     let debug = false;
+    // Run tests in sequentially
+    let no_headless = false;
     const options = new Options();
     try {
         // This is more convenient that setting fields one by one.
@@ -101,6 +104,7 @@ async function main(argv) {
         }
         if (opts["no_headless"]) {
             args.push("--no-headless");
+            no_headless = true;
         }
         options.parseArguments(args);
     } catch (error) {
@@ -155,6 +159,9 @@ async function main(argv) {
                 failed = true;
             })
         );
+        if (no_headless) {
+            await tests[i];
+        }
     }
     await Promise.all(tests);
     // final \n after the tests
@@ -187,9 +194,6 @@ async function main(argv) {
             case RUN_ERRORED:
                 console.error(r.output);
                 break;
-            default:
-                console.error(`unexpected status = ${r.status}`);
-                process.exit(4);
         }
     });