deprecate reboot function in test routines

This commit is contained in:
bunnie 2022-10-17 05:06:05 +08:00
parent 9a4b530046
commit dc2c79df4d

View file

@ -632,7 +632,8 @@ impl<'a> ShellCmdApi<'a> for Test {
env.com.ship_mode().unwrap();
// now send the power off command
env.com.power_off_soc().unwrap();
let susres = susres::Susres::new_without_hook(&env.xns).unwrap();
susres.immediate_poweroff().unwrap();
log::info!("CMD: ship mode now!");
// pause execution, nothing after this should be reachable
@ -758,7 +759,8 @@ impl<'a> ShellCmdApi<'a> for Test {
env.com.ship_mode().unwrap();
// now send the power off command
env.com.power_off_soc().unwrap();
let susres = susres::Susres::new_without_hook(&env.xns).unwrap();
susres.immediate_poweroff().unwrap();
log::info!("CMD: ship mode now!");
// pause execution, nothing after this should be reachable