about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorDennis Duda <git@seri.tools>2020-05-31 17:36:17 +0200
committerDennis Duda <git@seri.tools>2020-05-31 17:36:17 +0200
commit036da3a6dcc084db90dbe6ea2831eb7332a1c535 (patch)
tree4a2d1788b011504c417002a90883696c1a77be3d /src/tools/compiletest
parent0199fdc0f72ec6942d93d0bf23c7fa1fb9fbf54f (diff)
downloadrust-036da3a6dcc084db90dbe6ea2831eb7332a1c535.tar.gz
rust-036da3a6dcc084db90dbe6ea2831eb7332a1c535.zip
Make `remote-test-client` work as cargo runner again
Since cargo appends executable/args, the support_lib count
parameter has to come first.
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/runtest.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index a6995eb820a..4f8cf92b869 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -1608,8 +1608,7 @@ impl<'test> TestCx<'test> {
                 let mut test_client =
                     Command::new(self.config.remote_test_client.as_ref().unwrap());
                 test_client
-                    .args(&["run", &prog])
-                    .arg(support_libs.len().to_string())
+                    .args(&["run", &support_libs.len().to_string(), &prog])
                     .args(support_libs)
                     .args(args)
                     .envs(env.clone());