Remove excess argument for test
This commit is contained in:
parent
4bc8383016
commit
a2701de3a0
3 changed files with 4 additions and 4 deletions
|
@ -446,7 +446,7 @@ impl Device{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn test_cycle(&mut self, bp_cycles: Option<u64>, _temp_cycles: Option<u64>) -> () {
|
pub fn test_cycle(&mut self, bp_cycles: Option<u64>) -> () {
|
||||||
let local_bp_cycles: u64 = bp_cycles.unwrap_or(3);
|
let local_bp_cycles: u64 = bp_cycles.unwrap_or(3);
|
||||||
if self.current_state != State::LoginPrompt { self.reboot(); }
|
if self.current_state != State::LoginPrompt { self.reboot(); }
|
||||||
self.go_to_lifecycle_menu();
|
self.go_to_lifecycle_menu();
|
||||||
|
|
|
@ -149,7 +149,7 @@ fn main(){
|
||||||
for i in 1..=iteration_count{
|
for i in 1..=iteration_count{
|
||||||
log::info!("Starting iteration {} of {} for device {}...",
|
log::info!("Starting iteration {} of {} for device {}...",
|
||||||
i,iteration_count,device.get_serial());
|
i,iteration_count,device.get_serial());
|
||||||
device.test_cycle(None, None);
|
device.test_cycle(None);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,7 +110,7 @@ impl TTY{
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_to_device(&mut self,command:Command) -> bool {
|
pub fn write_to_device(&mut self,command:Command) -> bool {
|
||||||
log::debug!("writing {:?} to tty {}...", command, self.tty.name().unwrap_or("unknown".to_string()));
|
log::trace!("writing {:?} to tty {}...", command, self.tty.name().unwrap_or("unknown".to_string()));
|
||||||
let output = self.tty.write_all(COMMAND_MAP.get(&command).unwrap().as_bytes()).is_ok();
|
let output = self.tty.write_all(COMMAND_MAP.get(&command).unwrap().as_bytes()).is_ok();
|
||||||
_ = self.tty.flush();
|
_ = self.tty.flush();
|
||||||
if command == Command::Login { std::thread::sleep(std::time::Duration::from_secs(2)); }
|
if command == Command::Login { std::thread::sleep(std::time::Duration::from_secs(2)); }
|
||||||
|
@ -126,7 +126,7 @@ impl TTY{
|
||||||
let read_line:String = String::from_utf8_lossy(read_buffer.as_slice()).to_string();
|
let read_line:String = String::from_utf8_lossy(read_buffer.as_slice()).to_string();
|
||||||
for (string,enum_value) in RESPONSES{
|
for (string,enum_value) in RESPONSES{
|
||||||
if read_line.contains(string){
|
if read_line.contains(string){
|
||||||
log::debug!("Successful read of {:?} from tty {}, which matches pattern {:?}",read_line,self.tty.name().unwrap_or("unknown shell".to_string()),enum_value);
|
log::trace!("Successful read of {:?} from tty {}, which matches pattern {:?}",read_line,self.tty.name().unwrap_or("unknown shell".to_string()),enum_value);
|
||||||
self.failed_read_count = 0;
|
self.failed_read_count = 0;
|
||||||
if enum_value == Response::TempCount(0){
|
if enum_value == Response::TempCount(0){
|
||||||
let mut lines = read_line.lines();
|
let mut lines = read_line.lines();
|
||||||
|
|
Loading…
Add table
Reference in a new issue