Enable prune integration test. Fixes container prune.

Fixes container prune to prune created and configured containers.
Disables couple of system prune test as not yet in with v2.

Signed-off-by: Sujil02 <sushah@redhat.com>
This commit is contained in:
Sujil02
2020-04-30 11:26:02 -04:00
parent fc9451ed15
commit c3c030f550
2 changed files with 4 additions and 2 deletions

View File

@ -869,7 +869,8 @@ func (r *Runtime) PruneContainers(filterFuncs []ContainerFilter) (map[string]int
logrus.Error(err)
return false
}
if state == define.ContainerStateStopped || state == define.ContainerStateExited {
if state == define.ContainerStateStopped || state == define.ContainerStateExited ||
state == define.ContainerStateCreated || state == define.ContainerStateConfigured {
return true
}
return false