diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2018-11-08 17:04:05 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-11-08 17:04:22 +0100 |
| commit | 6fb701e8743e3ad1882d85347299bbcb94113ffc (patch) | |
| tree | df2b1bc05115897365451c98698693753e60e168 /src/tools/compiletest | |
| parent | ffdb2bc1c5ff0963d1bb1d179c12f5dd218b7612 (diff) | |
| download | rust-6fb701e8743e3ad1882d85347299bbcb94113ffc.tar.gz rust-6fb701e8743e3ad1882d85347299bbcb94113ffc.zip | |
Fix compiletest support for wasm32-unknown-emscripten
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index a80bbd401ab..399f9f577ed 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1870,11 +1870,9 @@ impl<'test> TestCx<'test> { } else { self.fatal("no NodeJS binary found (--nodejs)"); } - } - - // If this is otherwise wasm , then run tests under nodejs with our + // If this is otherwise wasm, then run tests under nodejs with our // shim - if self.config.target.contains("wasm32") { + } else if self.config.target.contains("wasm32") { if let Some(ref p) = self.config.nodejs { args.push(p.clone()); } else { |
