fn load_apps(&self, test: &Test) -> Result<()> {
        println!("executor: loading/unloading {} software", self.platform_support.platform());
        let currently_loaded = self.platform_support.loaded_software();
        for app_id in &currently_loaded {
            if !test.get_app_ids().contains(app_id) {
                println!("executor: removing '{}'", app_id);
                self.platform_support.unload(app_id)?;
            }
        }

        for app_name in test.get_app_ids() {
            if !currently_loaded.contains(app_name) {
                println!("executor: loading '{}'", app_name);
                self.platform_support.load(app_name)
                    .map_err(|e| TestbedError::Software(e))?;
            }
        }

        Ok(())
    }
/// Load specified applications onto the device.
Load specified applications onto the device.
Load specified applications onto the device .
fn load_apps(&self, test: &Test) -> Result<()> {
        println!("executor: loading/unloading {} software", self.platform_support.platform());
        let currently_loaded = self.platform_support.loaded_software();
        for app_id in &currently_loaded {
            if !test.get_app_ids().contains(app_id) {
                println!("executor: removing '{}'", app_id);
                self.platform_support.unload(app_id)?;
            }
        }
        for app_name in test.get_app_ids() {
            if !currently_loaded.contains(app_name) {
                println!("executor: loading '{}'", app_name);
                self.platform_support.load(app_name)
                    .map_err(|e| TestbedError::Software(e))?;
            }
        }
        Ok(())
    }
fn load_apps ( & self , test : & Test ) -> Result < ( ) > { println ! ( " " self platform_support platform ( ) ) ; let currently_loaded = self . platform_support . loaded_software ( ) ; for app_id in & currently_loaded { if ! test . get_app_ids ( ) . contains ( app_id ) { println ! ( " " app_id ) ; self . platform_support . unload ( app_id ) ? ; } } for app_name in test . get_app_ids ( ) { if ! currently_loaded . contains ( app_name ) { println ! ( " " app_name ) ; self . platform_support . load ( app_name ) . map_err ( | e | TestbedError :: Software ( e ) ) ? ; } } Ok ( ( ) ) }
Load specified applications onto the device.
Load specified applications onto the device .
&self
test
&Test
&self
test
&Test