Improved unit tests coverage

This commit is contained in:
Sun Knudsen 2021-04-19 13:43:55 -04:00
parent b5ca6cc946
commit d02d4b2378
No known key found for this signature in database
GPG key ID: 1FA767862BBD1305
11 changed files with 107 additions and 15 deletions

View file

@ -5,13 +5,13 @@ source ./test.exp
set bip39_mnemonic "online pipe enough dutch decorate want moment scheme rigid enlist blast boat purse sick chalk shop brush all return betray jacket salon abandon retire"
set electrum_mnemonic "month pet slice know amused leave now vague palm guess cattle element cross truly auto put among craft repeat van sample nephew sad family"
test_label "Should create BIP39 mnemonic"
test_label "Should format flash drive and create BIP39 mnemonic"
spawn qr-backup.sh --create-bip39-mnemonic
expect {
-re {Format USB flash drive \(y or n\)\?} {
test_send "n\r"
test_send "y\r"
}
}
@ -21,6 +21,10 @@ expect {
}
}
expect {
-re {mkfs\.fat 4\.1 \(2017-01-24\)}
}
expect {
-re {Creating BIP39 mnemonic…}
}