diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-11-25 00:04:08 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-12-04 15:29:23 +0100 |
| commit | 996635bad689a90ba90a8dbf887611f6fa287bab (patch) | |
| tree | b06b35c37a61d1926b9e4d6ad395bc535248ac53 | |
| parent | 2ec8d46dd1b6adc116a5efba46b7aad4a5315f86 (diff) | |
| download | rust-996635bad689a90ba90a8dbf887611f6fa287bab.tar.gz rust-996635bad689a90ba90a8dbf887611f6fa287bab.zip | |
Fix chroot command
| -rw-r--r-- | build_system/src/test.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build_system/src/test.rs b/build_system/src/test.rs index 1e012798cba..db3e4d9894d 100644 --- a/build_system/src/test.rs +++ b/build_system/src/test.rs @@ -345,8 +345,13 @@ fn run_command_in_vm( let sudo_command: &[&dyn AsRef<OsStr>] = &[&"sudo", &"cp", &exe, &vm_exe_path]; run_command_with_env(sudo_command, None, Some(env))?; - let mut vm_command: Vec<&dyn AsRef<OsStr>> = - vec![&"sudo", &"chroot", &"qemu-m68k-static", &inside_vm_exe_path]; + let mut vm_command: Vec<&dyn AsRef<OsStr>> = vec![ + &"sudo", + &"chroot", + &vm_dir, + &"qemu-m68k-static", + &inside_vm_exe_path, + ]; vm_command.extend_from_slice(command); run_command_with_env(&vm_command, Some(&vm_parent_dir), Some(env))?; Ok(()) |
