mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-26 18:27:53 +00:00
Remove the use of bash -c unless it involves a bash pipe. Also, use run test_runner.sh inside script so that centos can be happy. Signed-off-by: baude <bbaude@redhat.com> Closes: #239 Approved by: baude
25 lines
513 B
Bash
25 lines
513 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
function teardown() {
|
|
cleanup_test
|
|
}
|
|
|
|
function setup() {
|
|
copy_images
|
|
}
|
|
|
|
@test "podman export output flag" {
|
|
run ${PODMAN_BINARY} ${PODMAN_OPTIONS} create $BB ls
|
|
echo "$output"
|
|
[ "$status" -eq 0 ]
|
|
ctr_id="$output"
|
|
run ${PODMAN_BINARY} ${PODMAN_OPTIONS} export -o container.tar $ctr_id
|
|
echo "$output"
|
|
[ "$status" -eq 0 ]
|
|
run ${PODMAN_BINARY} ${PODMAN_OPTIONS} rm $ctr_id
|
|
echo "$output"
|
|
[ "$status" -eq 0 ]
|
|
rm -f container.tar
|
|
}
|