]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
tests: Fix expect sendcont test
authorMichal Sojka <michal.sojka@cvut.cz>
Sat, 29 Oct 2022 19:55:03 +0000 (21:55 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sat, 29 Oct 2022 19:55:03 +0000 (21:55 +0200)
For some reason, more didn't exit automatically.

tests/expect.wv

index 2d1acbc22e404486215ba59887233bf465d65c24..acfeca6f4120c5ab9f6390809823acaec34ba1bd 100755 (executable)
@@ -25,10 +25,10 @@ WVPASS ./script -t '' --expect-re=q..st..n --send="answer\n" \
     --remote-cmd='echo question; read x; echo $x > output'
 WVPASS grep answer output
 
-WVSTART Expect sendcond
+WVSTART Expect sendcont
 WVPASS create_dummy
 WVPASS ./script -t '' --expect=More --sendcont="\n" \
-    --remote-cmd='seq 100|more'
+    --remote-cmd='seq 100|more --exit-on-eof'
 
 WVSTART Expect vs exiton priority
 WVPASS create_dummy