summaryrefslogtreecommitdiff
path: root/test/system/450-interactive.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/system/450-interactive.bats')
-rw-r--r--test/system/450-interactive.bats11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/system/450-interactive.bats b/test/system/450-interactive.bats
index a2db39492..53925b3c8 100644
--- a/test/system/450-interactive.bats
+++ b/test/system/450-interactive.bats
@@ -57,7 +57,16 @@ function teardown() {
# ...and make sure stty under podman reads that.
run_podman run -it --name mystty $IMAGE stty size <$PODMAN_TEST_PTY
- is "$output" "$rows $cols" "stty under podman reads the correct dimensions"
+ is "$output" "$rows $cols" "stty under podman run reads the correct dimensions"
+
+ run_podman rm -f mystty
+
+ # check that the same works for podman exec
+ run_podman run -d --name mystty $IMAGE top
+ run_podman exec -it mystty stty size <$PODMAN_TEST_PTY
+ is "$output" "$rows $cols" "stty under podman exec reads the correct dimensions"
+
+ run_podman rm -f mystty
}