summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fs.py3
-rw-r--r--test/snapshots/ttyfollow.golden26
2 files changed, 16 insertions, 13 deletions
diff --git a/test/fs.py b/test/fs.py
index ff085a55..d44f417d 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -311,6 +311,9 @@ def run_file(binary):
time.sleep(.05)
assert run(client, term, b'false\n') == b'exit 1\n'
assert run(client, term, b'sh -c "exit 7"\n') == b'exit 7\n'
+ assert run(client, term, b'fi\n') == b'error not run\n' # a syntax error runs nothing
+ assert run(client, term, b"echo 'open\n") == b'error not run\n' # nor does an open quote
+ assert run(client, term, b'true\n') == b'exit 0\n' # ...and the shell is clear after
with Client(address) as other:
slow = []
waiter = threading.Thread(target=lambda: slow.append(run(other, term, b'sleep 1\n')), daemon=True)
diff --git a/test/snapshots/ttyfollow.golden b/test/snapshots/ttyfollow.golden
index e77b3caa..77f27d8e 100644
--- a/test/snapshots/ttyfollow.golden
+++ b/test/snapshots/ttyfollow.golden
@@ -28,17 +28,17 @@
|8: 190 $
== snap tty-follows grid=100x31 cursor=4,16
|2: $ /tmp/pardes-snap/ttyfollow/cwd Tty Save Mode Fi$ /tmp/pardes-snap/ttyfollow/cwd Tty Save Mode Fi
-|3: 288 $ ls
-|4: 289 s.txt
-|5: 290 $ touch go; until test -f done1; do sleep 0.05;
-|6: 291 done; echo SYN''CED
-|7: 292 SYNCED
-|8: 293 $
-|9: 294
-|10: 295
-|11: 296
-|12: 297
-|13: 298
-|14: 299
-|15: 300
+|3: 292 $ ls
+|4: 293 s.txt
+|5: 294 $ touch go; until test -f done1; do sleep 0.05;
+|6: 295 done; echo SYN''CED
+|7: 296 SYNCED
+|8: 297 $
+|9: 298
+|10: 299
+|11: 300
+|12: [1]+ Done ( until test -f
+|13: go; do
+|14: sleep 0.05;
+|15: done; seq 201 260; touch done1 )
|16: $