Remove excess argument for test
All checks were successful
Basic Cargo Checks / docker-check (push) Successful in 53s
Basic Cargo Checks / docker-build (push) Successful in 4m55s

This commit is contained in:
Blizzard Finnegan 2023-06-14 14:36:19 -04:00
parent 4bc8383016
commit a2701de3a0
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E
3 changed files with 4 additions and 4 deletions

View file

@ -446,7 +446,7 @@ impl Device{
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);
if self.current_state != State::LoginPrompt { self.reboot(); }
self.go_to_lifecycle_menu();

View file

@ -149,7 +149,7 @@ fn main(){
for i in 1..=iteration_count{
log::info!("Starting iteration {} of {} for device {}...",
i,iteration_count,device.get_serial());
device.test_cycle(None, None);
device.test_cycle(None);
}
}));
}

View file

@ -110,7 +110,7 @@ impl TTY{
}
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();
_ = self.tty.flush();
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();
for (string,enum_value) in RESPONSES{
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;
if enum_value == Response::TempCount(0){
let mut lines = read_line.lines();