aboutsummaryrefslogtreecommitdiff
path: root/test/system/075-exec.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-15 23:33:02 +0100
committerGitHub <noreply@github.com>2020-01-15 23:33:02 +0100
commit0870e88ff48eaf6b5624044b7cd2bc35cff85150 (patch)
treee0cd9d15cda69ffa8818cb84a5554ee48f41ca29 /test/system/075-exec.bats
parent978b891c8d2ffa7d52d872625a9ce3816c90334c (diff)
parent1298f19773574963b9ce5ba7ca3b1637d1a07ef6 (diff)
downloadpodman-0870e88ff48eaf6b5624044b7cd2bc35cff85150.tar.gz
podman-0870e88ff48eaf6b5624044b7cd2bc35cff85150.tar.bz2
podman-0870e88ff48eaf6b5624044b7cd2bc35cff85150.zip
Merge pull request #4824 from edsantiago/bats
more BATS tests
Diffstat (limited to 'test/system/075-exec.bats')
-rw-r--r--test/system/075-exec.bats16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/system/075-exec.bats b/test/system/075-exec.bats
index 472fdd1ab..36e9d57ec 100644
--- a/test/system/075-exec.bats
+++ b/test/system/075-exec.bats
@@ -49,4 +49,20 @@ load helpers
run_podman rm -f $cid
}
+# Issue #4785 - piping to exec statement - fixed in #4818
+@test "podman exec - cat from stdin" {
+ skip_if_remote
+
+ run_podman run -d $IMAGE sh -c 'while [ ! -e /stop ]; do sleep 0.1;done'
+ cid="$output"
+
+ echo_string=$(random_string 20)
+ run_podman exec -i $cid cat < <(echo $echo_string)
+ is "$output" "$echo_string" "output read back from 'exec cat'"
+
+ run_podman exec $cid touch /stop
+ run_podman wait $cid
+ run_podman rm $cid
+}
+
# vim: filetype=sh