summaryrefslogtreecommitdiff
path: root/test/apiv2/23-containersArchive.at
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-09 14:40:13 -0500
committerGitHub <noreply@github.com>2021-02-09 14:40:13 -0500
commitcd8a061214347c8a148f1ce682bec66a31a4bc6a (patch)
treed62279b6ec04b7bc736e330e941020b1c0a983ff /test/apiv2/23-containersArchive.at
parenta8c7aedc74cf2f6d479d6dcdf87d526c4344bdd4 (diff)
parentea704da726177a75c5635b3fbaf2d86cec759ee7 (diff)
downloadpodman-cd8a061214347c8a148f1ce682bec66a31a4bc6a.tar.gz
podman-cd8a061214347c8a148f1ce682bec66a31a4bc6a.tar.bz2
podman-cd8a061214347c8a148f1ce682bec66a31a4bc6a.zip
Merge pull request #9289 from edsantiago/apiv2_test_fixes
apiv2 test fixes
Diffstat (limited to 'test/apiv2/23-containersArchive.at')
-rw-r--r--test/apiv2/23-containersArchive.at9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/apiv2/23-containersArchive.at b/test/apiv2/23-containersArchive.at
index 459800196..688ca9f06 100644
--- a/test/apiv2/23-containersArchive.at
+++ b/test/apiv2/23-containersArchive.at
@@ -13,13 +13,10 @@ podman rm -a -f &>/dev/null
CTR="ArchiveTestingCtr"
-TMPD=$(mktemp -d)
-pushd "${TMPD}"
-echo "Hello" > "hello.txt"
-tar --format=posix -cvf "hello.tar" "hello.txt" &> /dev/null
-popd
-
+TMPD=$(mktemp -d podman-apiv2-test.archive.XXXXXXXX)
HELLO_TAR="${TMPD}/hello.tar"
+echo "Hello" > $TMPD/hello.txt
+tar --format=posix -C $TMPD -cvf ${HELLO_TAR} hello.txt &> /dev/null
podman run -d --name "${CTR}" "${IMAGE}" top