diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-29 05:03:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 05:03:05 -0400 |
commit | 83166a98c3cdb3fc88e239772430cfcb3f28c3b0 (patch) | |
tree | 535db891dbacaebe37d7211ac9d47eadb440915f /test/system/070-build.bats | |
parent | 7f0c0941e84eece3d0e6cc62acc257e1ed33ef2a (diff) | |
parent | a35045cbc4a6c22ab95bd203b134ce0e30f344e2 (diff) | |
download | podman-83166a98c3cdb3fc88e239772430cfcb3f28c3b0.tar.gz podman-83166a98c3cdb3fc88e239772430cfcb3f28c3b0.tar.bz2 podman-83166a98c3cdb3fc88e239772430cfcb3f28c3b0.zip |
Merge pull request #7121 from rhatdan/build
Fix building from http or '-' options
Diffstat (limited to 'test/system/070-build.bats')
-rw-r--r-- | test/system/070-build.bats | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats index accdc9315..627b9caa6 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -233,6 +233,27 @@ Labels.$label_name | $label_value run_podman rmi -f build_test } +@test "podman build - stdin test" { + if is_remote && is_rootless; then + skip "unreliable with podman-remote and rootless; #2972" + fi + + # Random workdir, and multiple random strings to verify command & env + workdir=/$(random_string 10) + PODMAN_TIMEOUT=240 run_podman build -t build_test - << EOF +FROM $IMAGE +RUN mkdir $workdir +WORKDIR $workdir +RUN /bin/echo 'Test' +EOF + is "$output" ".*STEP 5: COMMIT" "COMMIT seen in log" + + run_podman run --rm build_test pwd + is "$output" "$workdir" "pwd command in container" + + run_podman rmi -f build_test +} + function teardown() { # A timeout or other error in 'build' can leave behind stale images # that podman can't even see and which will cascade into subsequent |