Skip to content

Commit 996635b

Browse files
Fix chroot command
1 parent 2ec8d46 commit 996635b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build_system/src/test.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,13 @@ fn run_command_in_vm(
345345
let sudo_command: &[&dyn AsRef<OsStr>] = &[&"sudo", &"cp", &exe, &vm_exe_path];
346346
run_command_with_env(sudo_command, None, Some(env))?;
347347

348-
let mut vm_command: Vec<&dyn AsRef<OsStr>> =
349-
vec![&"sudo", &"chroot", &"qemu-m68k-static", &inside_vm_exe_path];
348+
let mut vm_command: Vec<&dyn AsRef<OsStr>> = vec![
349+
&"sudo",
350+
&"chroot",
351+
&vm_dir,
352+
&"qemu-m68k-static",
353+
&inside_vm_exe_path,
354+
];
350355
vm_command.extend_from_slice(command);
351356
run_command_with_env(&vm_command, Some(&vm_parent_dir), Some(env))?;
352357
Ok(())

0 commit comments

Comments
 (0)