aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-31 09:28:41 -0400
committerGitHub <noreply@github.com>2020-07-31 09:28:41 -0400
commitb55a0ce42eb836b8d4a7091ea8bdd82e58f8352b (patch)
treef120dd0db970fc02235bf7a92a9fdea9258e84e6 /test
parenteea6bd1cf45746e754e2cceb76f8eb638bcad718 (diff)
parentc95d2856f86cd8d85284e0b5adf2dd221173c268 (diff)
downloadpodman-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.bats20
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