diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-31 09:28:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 09:28:41 -0400 |
commit | b55a0ce42eb836b8d4a7091ea8bdd82e58f8352b (patch) | |
tree | f120dd0db970fc02235bf7a92a9fdea9258e84e6 /test | |
parent | eea6bd1cf45746e754e2cceb76f8eb638bcad718 (diff) | |
parent | c95d2856f86cd8d85284e0b5adf2dd221173c268 (diff) | |
download | podman-b55a0ce42eb836b8d4a7091ea8bdd82e58f8352b.tar.gz podman-b55a0ce42eb836b8d4a7091ea8bdd82e58f8352b.tar.bz2 podman-b55a0ce42eb836b8d4a7091ea8bdd82e58f8352b.zip |
Merge pull request #7166 from vrothberg/2.0-backports
2.0 backports
Diffstat (limited to 'test')
-rw-r--r-- | test/system/070-build.bats | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats index fd4ce03fc..7d6660270 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -98,6 +98,26 @@ EOF is "$output" ".*error building at STEP .*: source can't be a URL for COPY" } +@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 |