/// Evaluates whether `p` should be launched or skipped based on the CLI
/// --skip option and on whether or not the user sent SIGINT already.
Evaluates whether `p` should be launched or skipped based on the CLI
skip option and on whether or not the user sent SIGINT already.
Evaluates whether ` p ` should be launched or skipped based on the CLI skip option and on whether or not the user sent SIGINT already .
fn launch_or_skip(&mut self, p: pot::Pot, config: &Config) {
        // If the pot contains only tests marked to be skipped  we're not executing
        // anything anymore; just produce a result that shows that we've
        // pondered running these tests but decided against.
        let result = if pot::should_skip(&p.test) {
            Some(TestResult::Skipped)
        } else if self.signaled() {
            Some(TestResult::Failed)
        } else {
            None
        };
        if let Some(r) = result {
            self.result.0.push(CompletedPot::new(
                p.derived_name.clone(),
                p.test.test_names(),
                r,
            ))
        } else {
            // If we are supposed to evaluate this task, we launch the pot into a separate
            // process and register it in our poll for further monitoring.
            let _pid = self.launch(p, config);
        }
    }
fn launch_or_skip ( & mut self , p : pot :: Pot , config : & Config ) { // If the pot contains only tests marked to be skipped  we're not executing // anything anymore; just produce a result that shows that we've // pondered running these tests but decided against. let result = if pot :: should_skip ( & p . test ) { Some ( TestResult :: Skipped ) } else if self . signaled ( ) { Some ( TestResult :: Failed ) } else { None } ; if let Some ( r ) = result { self . result . 0 . push ( CompletedPot :: new ( p . derived_name . clone ( ) , p . test . test_names ( ) , r , ) ) } else { // If we are supposed to evaluate this task, we launch the pot into a separate // process and register it in our poll for further monitoring. let _pid = self . launch ( p , config ) ; } }
Evaluates whether `p` should be launched or skipped based on the CLI
skip option and on whether or not the user sent SIGINT already.
Evaluates whether ` p ` should be launched or skipped based on the CLI skip option and on whether or not the user sent SIGINT already .
&mut self
p
pot::Pot
config
&Config