summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2021-10-21 22:11:37 +0200
committerMatthew Heon <matthew.heon@pm.me>2021-11-12 11:08:25 -0500
commit18c322d1c05f776bf754c30091520c6d51a5cd4d (patch)
treefbc91651fd33195e79057150bfa9e97e10f04e55 /test
parent3bd80ac9ae2ea512a5ce9140bedab742910d0513 (diff)
downloadpodman-18c322d1c05f776bf754c30091520c6d51a5cd4d.tar.gz
podman-18c322d1c05f776bf754c30091520c6d51a5cd4d.tar.bz2
podman-18c322d1c05f776bf754c30091520c6d51a5cd4d.zip
Use INTEGRATION_ROOT instead of current directory
Should not change behavior, just to set a consistent precedent for code introduced in future commits. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/trust_test.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/e2e/trust_test.go b/test/e2e/trust_test.go
index 7f97f280a..26b58737c 100644
--- a/test/e2e/trust_test.go
+++ b/test/e2e/trust_test.go
@@ -14,7 +14,8 @@ import (
var _ = Describe("Podman trust", func() {
var (
- tempdir string
+ tempdir string
+
err error
podmanTest *PodmanTestIntegration
)
@@ -38,11 +39,7 @@ var _ = Describe("Podman trust", func() {
})
It("podman image trust show", func() {
- path, err := os.Getwd()
- if err != nil {
- os.Exit(1)
- }
- session := podmanTest.Podman([]string{"image", "trust", "show", "--registrypath", filepath.Dir(path), "--policypath", filepath.Join(filepath.Dir(path), "policy.json")})
+ session := podmanTest.Podman([]string{"image", "trust", "show", "--registrypath", filepath.Join(INTEGRATION_ROOT, "test"), "--policypath", filepath.Join(INTEGRATION_ROOT, "test/policy.json")})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
outArray := session.OutputToStringArray()