blob: dc950d11d17dbf7c5d5240dd96def85843ad5dab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
def expect_next from p (str):
expect /(.*)/ from p capture line
guard (line == str)
test Test:
node n
shell on n as p:
cat
send "a" to p
send "b" to p
send "x" to p
expect /x/ from p
ignore from p matching /a/
send "a" to p
send "c" to p
expect_next "b" from p
expect_next "c" from p
send "a" to p
send "b" to p
with p:
send "c"
ignore matching /[bcd]/
send "d"
send "e"
expect_next "e" from p
send "a" to p
send "b" to p
local:
send "c" to p
send "d" to p
expect_next "b" from p
expect_next "c" from p
expect_next "d" from p
|