mirror of
https://github.com/containers/podman.git
synced 2025-06-27 21:50:18 +08:00
Tests for podman volume commands
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
@ -227,6 +227,17 @@ func (p *PodmanTestIntegration) CleanupPod() {
|
||||
}
|
||||
}
|
||||
|
||||
// CleanupVolume cleans up the temporary store
|
||||
func (p *PodmanTestIntegration) CleanupVolume() {
|
||||
// Remove all containers
|
||||
session := p.Podman([]string{"volume", "rm", "-fa"})
|
||||
session.Wait(90)
|
||||
// Nuke tempdir
|
||||
if err := os.RemoveAll(p.TempDir); err != nil {
|
||||
fmt.Printf("%q\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
// PullImages pulls multiple images
|
||||
func (p *PodmanTestIntegration) PullImages(images []string) error {
|
||||
for _, i := range images {
|
||||
|
Reference in New Issue
Block a user