diff options
author | umohnani8 <umohnani@redhat.com> | 2018-01-23 17:10:47 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-25 02:28:07 +0000 |
commit | 49576a1fb107eb691cee9757465f060817702d43 (patch) | |
tree | 5d8fd2ebb121b1e598a356af46f0e2c52d7ff751 /test/podman_save.bats | |
parent | 97f234190f9641dabecdefb05ffe52103621da90 (diff) | |
download | podman-49576a1fb107eb691cee9757465f060817702d43.tar.gz podman-49576a1fb107eb691cee9757465f060817702d43.tar.bz2 podman-49576a1fb107eb691cee9757465f060817702d43.zip |
Fix issue with order of flags
The order of the flags was casuing issue.
Enabled SkipArgReorder to fix the problem.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes: #259
Approved by: rhatdan
Diffstat (limited to 'test/podman_save.bats')
-rw-r--r-- | test/podman_save.bats | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/podman_save.bats b/test/podman_save.bats index 9c6fa8b86..5adfb8fea 100644 --- a/test/podman_save.bats +++ b/test/podman_save.bats @@ -43,16 +43,28 @@ function setup() { [ "$status" -ne 0 ] } -@test "podman save to directory wit oci format" { +@test "podman save to directory with oci format" { run ${PODMAN_BINARY} ${PODMAN_OPTIONS} save --format oci-dir -o alp-dir $ALPINE echo "$output" [ "$status" -eq 0 ] rm -rf alp-dir } -@test "podman save to directory wit v2s2 (docker) format" { +@test "podman save to directory with v2s2 (docker) format" { run ${PODMAN_BINARY} ${PODMAN_OPTIONS} save --format docker-dir -o alp-dir $ALPINE echo "$output" [ "$status" -eq 0 ] rm -rf alp-dir } + +@test "podman save to directory with compression" { + run ${PODMAN_BINARY} ${PODMAN_OPTIONS} save --compress --format docker-dir -o alp-dir $ALPINE + echo "$output" + [ "$status" -eq 0 ] + rm -rf alp-dir + + run ${PODMAN_BINARY} ${PODMAN_OPTIONS} save --format docker-dir --compress -o alp-dir $ALPINE + echo "$output" + [ "$status" -eq 0 ] + rm -rf alp-dir +} |