aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-05-31 12:58:44 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-05-31 12:58:44 -0400
commit25aac813bd88478961b60eda2a3ede7fcf5adef9 (patch)
tree6c58e2a4fc145e46ec1247e47904436096b584a2 /test
parenta01349373adf0fb89cfeceea517843c2ce1c4413 (diff)
downloadpodman-25aac813bd88478961b60eda2a3ede7fcf5adef9.tar.gz
podman-25aac813bd88478961b60eda2a3ede7fcf5adef9.tar.bz2
podman-25aac813bd88478961b60eda2a3ede7fcf5adef9.zip
Fix podman cp test by reordering operations
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/cp_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/e2e/cp_test.go b/test/e2e/cp_test.go
index 983d61b58..597d0aef7 100644
--- a/test/e2e/cp_test.go
+++ b/test/e2e/cp_test.go
@@ -163,16 +163,16 @@ var _ = Describe("Podman cp", func() {
})
It("podman cp symlink", func() {
- srcPath := filepath.Join(podmanTest.RunRoot, "cp_test.txt")
- fromHostToContainer := []byte("copy from host to container")
- err := ioutil.WriteFile(srcPath, fromHostToContainer, 0644)
- Expect(err).To(BeNil())
-
session := podmanTest.Podman([]string{"run", "-d", ALPINE, "top"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
name := session.OutputToString()
+ srcPath := filepath.Join(podmanTest.RunRoot, "cp_test.txt")
+ fromHostToContainer := []byte("copy from host to container")
+ err := ioutil.WriteFile(srcPath, fromHostToContainer, 0644)
+ Expect(err).To(BeNil())
+
session = podmanTest.Podman([]string{"exec", name, "ln", "-s", "/tmp", "/test"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))