diff options
author | Qi Wang <qiwan@redhat.com> | 2020-08-21 13:56:50 -0400 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2020-09-04 15:04:36 -0400 |
commit | 6b0864434ad2780160c06ba607c76b0325b60175 (patch) | |
tree | 6d352ca8204e5f7c5e2ff1266248ff35d1cb9a19 /test/system/070-build.bats | |
parent | fa487a65220951e84779f200f48780666b4b9209 (diff) | |
download | podman-6b0864434ad2780160c06ba607c76b0325b60175.tar.gz podman-6b0864434ad2780160c06ba607c76b0325b60175.tar.bz2 podman-6b0864434ad2780160c06ba607c76b0325b60175.zip |
Add global options --runtime-flags
Add global options --runtime-flags for setting options to container runtime.
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'test/system/070-build.bats')
-rw-r--r-- | test/system/070-build.bats | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats index 997699ecb..1d757bbc7 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -30,9 +30,26 @@ EOF run_podman rmi -f build_test } +@test "podman build - global runtime flags test" { + skip_if_remote "FIXME: pending #7136" + + rand_content=$(random_string 50) + + tmpdir=$PODMAN_TMPDIR/build-test + run mkdir -p $tmpdir + containerfile=$tmpdir/Containerfile + cat >$containerfile <<EOF +FROM $IMAGE +RUN echo $rand_content +EOF + + run_podman 125 --runtime-flag invalidflag build -t build_test $tmpdir + is "$output" ".*invalidflag" "failed when passing undefined flags to the runtime" +} + # Regression from v1.5.0. This test passes fine in v1.5.0, fails in 1.6 @test "podman build - cache (#3920)" { - skip_if_remote "FIXME: pending #7136" + skip_if_remote "FIXME: pending #7136, runtime flag is not passing over remote" if is_remote && is_rootless; then skip "unreliable with podman-remote and rootless; #2972" fi |