mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00
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>
This commit is contained in:
@ -14,7 +14,8 @@ import (
|
|||||||
|
|
||||||
var _ = Describe("Podman trust", func() {
|
var _ = Describe("Podman trust", func() {
|
||||||
var (
|
var (
|
||||||
tempdir string
|
tempdir string
|
||||||
|
|
||||||
err error
|
err error
|
||||||
podmanTest *PodmanTestIntegration
|
podmanTest *PodmanTestIntegration
|
||||||
)
|
)
|
||||||
@ -38,11 +39,7 @@ var _ = Describe("Podman trust", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman image trust show", func() {
|
It("podman image trust show", func() {
|
||||||
path, err := os.Getwd()
|
session := podmanTest.Podman([]string{"image", "trust", "show", "--registrypath", filepath.Join(INTEGRATION_ROOT, "test"), "--policypath", filepath.Join(INTEGRATION_ROOT, "test/policy.json")})
|
||||||
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.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
outArray := session.OutputToStringArray()
|
outArray := session.OutputToStringArray()
|
||||||
|
Reference in New Issue
Block a user