diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-21 13:12:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 13:12:44 +0200 |
commit | fea325327106aebc08fd6b11bc77c434e614c3e9 (patch) | |
tree | 22224da22da2b020f95ae793768dd4722d994168 /test/system/030-run.bats | |
parent | 30231d0da7e6dcf3d6d1f45b10150baae35aaf28 (diff) | |
parent | 377773ab5b855fdaa32fba0896768aa97674c7e6 (diff) | |
download | podman-fea325327106aebc08fd6b11bc77c434e614c3e9.tar.gz podman-fea325327106aebc08fd6b11bc77c434e614c3e9.tar.bz2 podman-fea325327106aebc08fd6b11bc77c434e614c3e9.zip |
Merge pull request #15866 from boaz0/closes_15746
Fix podman-remote run --attach stdin to show container ID
Diffstat (limited to 'test/system/030-run.bats')
-rw-r--r-- | test/system/030-run.bats | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index b1ce91d14..8cd29e744 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -892,4 +892,14 @@ $IMAGE--c_ok" \ run_podman container rm -f -t 0 c_ok c_fail_no_rm } +@test "podman run --attach stdin prints container ID" { + ctr_name="container-$(random_string 5)" + run_podman run --name $ctr_name --attach stdin $IMAGE echo hello + run_output=$output + run_podman inspect --format "{{.Id}}" $ctr_name + ctr_id=$output + is "$run_output" "$ctr_id" "Did not find container ID in the output" + run_podman rm $ctr_name +} + # vim: filetype=sh |