mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-16 12:31:51 +08:00
Persist container state to disk
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -82,14 +82,12 @@ func TestFactoryLoadContainer(t *testing.T) {
|
||||
}
|
||||
expectedState = &State{
|
||||
InitProcessPid: 1024,
|
||||
Config: *expectedConfig,
|
||||
}
|
||||
)
|
||||
if err := os.Mkdir(filepath.Join(root, id), 0700); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := marshal(filepath.Join(root, id, configFilename), expectedConfig); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := marshal(filepath.Join(root, id, stateFilename), expectedState); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user