summaryrefslogtreecommitdiff
path: root/test/fs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs.py')
-rw-r--r--test/fs.py3
1 files changed, 3 insertions, 0 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)