about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2020-03-13 23:24:12 +0000
committerOliver Middleton <olliemail27@gmail.com>2020-03-13 23:24:12 +0000
commit3f58ab6e24af34265229f701d48eb240cc06d751 (patch)
tree6a226e2f9929cc870eef5d4b31213047b269d730 /src/tools/compiletest
parent965888adc20f46799f382065142dbb0e27905d9c (diff)
downloadrust-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.rs2
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);