]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Add test for functionality in the previous commit
authorMichal Sojka <michal.sojka@cvut.cz>
Sun, 24 Jan 2021 22:10:53 +0000 (23:10 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Sun, 24 Jan 2021 22:10:53 +0000 (23:10 +0100)
tests/expect.wv

index c70b234534bb9666a09c04118582960bd613ccfb..2d1acbc22e404486215ba59887233bf465d65c24 100755 (executable)
@@ -29,3 +29,9 @@ WVSTART Expect sendcond
 WVPASS create_dummy
 WVPASS ./script -t '' --expect=More --sendcont="\n" \
     --remote-cmd='seq 100|more'
+
+WVSTART Expect vs exiton priority
+WVPASS create_dummy
+WVPASS ./script -t '' --expect="#" --sendcont="exit\n#" --exiton="exit" \
+       --remote-cmd='echo -n "#"; cat' | tee output
+WVPASS test "$(grep exit output | wc -l )" -eq 1