mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Always start tests from a clean set of loopback images
This way we don't get any issues with leftovers
This commit is contained in:
parent
a7fd1fce5d
commit
261b0b01df
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue