Always start tests from a clean set of loopback images
This way we don't get any issues with leftovers Upstream-commit: d951911b23b26cda087e823f203414a0ad184276 Component: engine
This commit is contained in:
committed by
Tianon Gravi
parent
7bed559f55
commit
16f68cf6d5
@@ -88,6 +88,12 @@ func init() {
|
||||
|
||||
NetworkBridgeIface = unitTestNetworkBridge
|
||||
|
||||
// Always start from a clean set of loopback mounts
|
||||
err := os.RemoveAll(unitTestStoreDevicesBase)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Make it our Store root
|
||||
if runtime, err := NewRuntimeFromDirectory(unitTestStoreBase, devmapper.NewDeviceSetDM(unitTestStoreDevicesBase), false); err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user