diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-24 15:28:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 15:28:25 -0700 |
commit | ebb57df0f67c1e92ad246bab74f971390c793b98 (patch) | |
tree | 238247a0fab3bdcc46e5fb03b7becba2e60057fd /test/system | |
parent | 545127c07562bfaa9aa0cf1641b0bd51b37343c9 (diff) | |
parent | 00949d0bd8a08dcb4d619bebddd1dc3ef3b62e73 (diff) | |
download | podman-ebb57df0f67c1e92ad246bab74f971390c793b98.tar.gz podman-ebb57df0f67c1e92ad246bab74f971390c793b98.tar.bz2 podman-ebb57df0f67c1e92ad246bab74f971390c793b98.zip |
Merge pull request #9747 from rhatdan/tty
Check if stdin is a term in --interactive --tty mode
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/030-run.bats | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index b2999a9e7..39ade22af 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -668,4 +668,15 @@ json-file | f is "$output" ".*HOME=/.*" } +@test "podman run --tty -i failure with no tty" { + run_podman run --tty -i --rm $IMAGE echo hello < /dev/null + is "$output" ".*The input device is not a TTY.*" + + run_podman run --tty=false -i --rm $IMAGE echo hello < /dev/null + is "$output" "hello" + + run_podman run --tty -i=false --rm $IMAGE echo hello < /dev/null + is "$output" "hello" +} + # vim: filetype=sh |