fn spawn_nrk(args: &RunnerArgs) -> Result<rexpect::session::PtySession> {
    let mut o = process::Command::new("python3");
    o.args(args.as_cmd());

    eprintln!("Invoke QEMU: {:?}", o);
    let timeout = if cfg!(feature = "baremetal") {
        // Machine might take very long to boot, so currently
        // we don't use timeouts for baremetal
        Some(8 * 60 * 1000) // 8 Minutes
    } else {
        args.timeout
    };
    spawn_command(o, timeout)
}
/// Builds the kernel and spawns a qemu instance of it.
///
/// For kernel-code it gets compiled with kernel features `integration-test`
/// and whatever feature is supplied in `test`. For user-space modules
/// we pass everything in `user_features` to the build.
///
/// It will make sure the code is compiled and ready to launch.
/// Otherwise the 15s timeout we set on the PtySession may not be enough
/// to build from scratch and run the test.
Builds the kernel and spawns a qemu instance of it.
For kernel-code it gets compiled with kernel features `integration-test`
and whatever feature is supplied in `test`. For user-space modules
we pass everything in `user_features` to the build.

It will make sure the code is compiled and ready to launch.
Otherwise the 15s timeout we set on the PtySession may not be enough
to build from scratch and run the test.
Builds the kernel and spawns a qemu instance of it . For kernel - code it gets compiled with kernel features ` integration - test ` and whatever feature is supplied in ` test ` . For user - space modules we pass everything in ` user_features ` to the build . It will make sure the code is compiled and ready to launch . Otherwise the 15s timeout we set on the PtySession may not be enough to build from scratch and run the test .
fn spawn_nrk(args: &RunnerArgs) -> Result<rexpect::session::PtySession> {
    let mut o = process::Command::new("python3");
    o.args(args.as_cmd());
    eprintln!("Invoke QEMU: {:?}", o);
    let timeout = if cfg!(feature = "baremetal") {
        // Machine might take very long to boot, so currently
        // we don't use timeouts for baremetal
        Some(8 * 60 * 1000) // 8 Minutes
    } else {
        args.timeout
    };
    spawn_command(o, timeout)
}
fn spawn_nrk ( args : & RunnerArgs ) -> Result < rexpect :: session :: PtySession > { let mut o = process :: Command :: new ( " " ) ; o . args ( args . as_cmd ( ) ) ; eprintln ! ( " " o ) ; let timeout = if cfg ! ( feature " " ) { // Machine might take very long to boot, so currently // we don't use timeouts for baremetal Some ( 8 * 60 * 1000 ) // 8 Minutes } else { args . timeout } ; spawn_command ( o , timeout ) }
Builds the kernel and spawns a qemu instance of it.
Builds the kernel and spawns a qemu instance of it .
args
&RunnerArgs
args
&RunnerArgs