mirror of
https://github.com/containers/podman.git
synced 2025-12-09 23:27:09 +08:00
Merge pull request #14734 from giuseppe/copyup-switch-order
volume: add two new options copy and nocopy
This commit is contained in:
@@ -452,6 +452,14 @@ var _ = Describe("Podman run with volumes", func() {
|
||||
separateVolumeSession.WaitWithDefaultTimeout()
|
||||
Expect(separateVolumeSession).Should(Exit(0))
|
||||
Expect(separateVolumeSession.OutputToString()).To(Equal(baselineOutput))
|
||||
|
||||
copySession := podmanTest.Podman([]string{"run", "--rm", "-v", "testvol3:/etc/apk:copy", ALPINE, "stat", "-c", "%h", "/etc/apk/arch"})
|
||||
copySession.WaitWithDefaultTimeout()
|
||||
Expect(copySession).Should(Exit(0))
|
||||
|
||||
noCopySession := podmanTest.Podman([]string{"run", "--rm", "-v", "testvol4:/etc/apk:nocopy", ALPINE, "stat", "-c", "%h", "/etc/apk/arch"})
|
||||
noCopySession.WaitWithDefaultTimeout()
|
||||
Expect(noCopySession).Should(Exit(1))
|
||||
})
|
||||
|
||||
It("podman named volume copyup symlink", func() {
|
||||
|
||||
Reference in New Issue
Block a user