summaryrefslogtreecommitdiff
path: root/test/asset/run-success/command-flush.et
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-04-19 21:02:51 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-04-24 21:25:40 +0200
commitd361b5cb163316d4e0c56cab30301e18b548afff (patch)
tree8ec62317b6b65ae02b023feb4a4ddd4cfa8e2caa /test/asset/run-success/command-flush.et
parent27462e02fd6a558ef5b96441d9977a221d5ffe66 (diff)
Arbitrary expressions as variable valuesHEADmaster
Diffstat (limited to 'test/asset/run-success/command-flush.et')
-rw-r--r--test/asset/run-success/command-flush.et30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/asset/run-success/command-flush.et b/test/asset/run-success/command-flush.et
new file mode 100644
index 0000000..8c5f7b8
--- /dev/null
+++ b/test/asset/run-success/command-flush.et
@@ -0,0 +1,30 @@
+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 "a1" to p
+ send "b" to p
+ send "x" to p
+ expect /x/ from p
+
+ flush from p matching /a.*/
+ send "a2" to p
+ send "c" to p
+
+ expect_next "b" from p
+ expect_next "a2" from p
+ expect_next "c" from p
+
+ send "d" to p
+ send "e" to p
+ send "f" to p
+ send "x" to p
+ expect /x/ from p
+ flush from p
+ send "g" to p
+ expect_next "g" from p