mirror of
https://github.com/docker/cli.git
synced 2026-09-27 17:56:04 -04:00
Always start tests from a clean set of loopback images
This way we don't get any issues with leftovers Upstream-commit: 261b0b01dffde42595d987b609d38c3b6d8368f7 Component: engine
This commit is contained in:
committed by
Victor Vieux
parent
1c3fa571b9
commit
a4196242f7
@@ -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