Make remote-test-client work as cargo runner again

Since cargo appends executable/args, the support_lib count
parameter has to come first.
This commit is contained in:
Dennis Duda 2020-05-31 17:36:17 +02:00
parent 0199fdc0f7
commit 036da3a6dc
3 changed files with 7 additions and 6 deletions

View file

@ -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());