Print card name from config in test output
This commit is contained in:
parent
413e464cff
commit
b5ebc6b43c
3 changed files with 6 additions and 2 deletions
|
@ -46,6 +46,10 @@ impl TestCardApp {
|
|||
pub fn get_config(&self) -> &Config {
|
||||
&self.config
|
||||
}
|
||||
|
||||
pub fn get_name(&self) -> &str {
|
||||
&self.name
|
||||
}
|
||||
}
|
||||
|
||||
impl TestConfig {
|
||||
|
|
|
@ -18,7 +18,7 @@ fn main() -> Result<()> {
|
|||
let cards = config.get_cards();
|
||||
|
||||
for mut card in cards {
|
||||
println!("** Run tests on card {:?} **", card);
|
||||
println!("** Run tests on card '{}' **", card.get_name());
|
||||
|
||||
println!("Reset");
|
||||
let _ = run_test(&mut card, test_reset, &[])?;
|
||||
|
|
|
@ -17,7 +17,7 @@ fn main() -> Result<()> {
|
|||
let cards = config.get_cards();
|
||||
|
||||
for mut card in cards {
|
||||
println!("** Run tests on card {:?} **", card);
|
||||
println!("** Run tests on card {} **", card.get_name());
|
||||
|
||||
// println!("Get pubkey");
|
||||
// let _ = run_test(&mut card, test_get_pub, &[])?;
|
||||
|
|
Loading…
Reference in a new issue