mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07: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:
committed by
Victor Vieux
parent
a7fd1fce5d
commit
261b0b01df
@@ -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