diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2020-03-13 23:24:12 +0000 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2020-03-13 23:24:12 +0000 |
| commit | 3f58ab6e24af34265229f701d48eb240cc06d751 (patch) | |
| tree | 6a226e2f9929cc870eef5d4b31213047b269d730 /src/tools/compiletest | |
| parent | 965888adc20f46799f382065142dbb0e27905d9c (diff) | |
| download | rust-3f58ab6e24af34265229f701d48eb240cc06d751.tar.gz rust-3f58ab6e24af34265229f701d48eb240cc06d751.zip | |
Allow `rustdoc-js` and `rustdoc-js-std` to use none default build dir location
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index ac808b1f14e..b72963addc4 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -2779,7 +2779,7 @@ impl<'test> TestCx<'test> { Command::new(&nodejs) .arg(root.join("src/tools/rustdoc-js/tester.js")) .arg(out_dir.parent().expect("no parent")) - .arg(&self.testpaths.file.file_stem().expect("couldn't get file stem")), + .arg(self.testpaths.file.with_extension("js")), ); if !res.status.success() { self.fatal_proc_rec("rustdoc-js test failed!", &res); |
