fn spawn2<T>(&mut self, dir: T) -> Result<TestChild<T>, Report> {
        let cmd = format!("{:?}", self);
        let child = self.spawn();

        let child = child
            .wrap_err("failed to execute process")
            .with_section(|| cmd.clone().header("Command:"))?;

        Ok(TestChild {
            child,
            cmd,
            dir,
            deadline: None,
            stdout: None,
            stderr: None,
            bypass_test_capture: false,
        })
    }
/// wrapper for `spawn` fn on `Command` that constructs informative error
/// reports
wrapper for `spawn` fn on `Command` that constructs informative error
reports
wrapper for ` spawn ` fn on ` Command ` that constructs informative error reports
fn spawn2<T>(&mut self, dir: T) -> Result<TestChild<T>, Report> {
        let cmd = format!("{:?}", self);
        let child = self.spawn();
        let child = child
            .wrap_err("failed to execute process")
            .with_section(|| cmd.clone().header("Command:"))?;
        Ok(TestChild {
            child,
            cmd,
            dir,
            deadline: None,
            stdout: None,
            stderr: None,
            bypass_test_capture: false,
        })
    }
fn spawn2 < T > ( & mut self , dir : T ) -> Result < TestChild < T > , Report > { let cmd = format ! ( " " self ) ; let child = self . spawn ( ) ; let child = child . wrap_err ( " " ) . with_section ( | | cmd . clone ( ) . header ( " " ) ) ? ; Ok ( TestChild { child , cmd , dir , deadline : None , stdout : None , stderr : None , bypass_test_capture : false , } ) }
wrapper for `spawn` fn on `Command` that constructs informative error
reports
wrapper for ` spawn ` fn on ` Command ` that constructs informative error reports
&mut self
dir
T