mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Add integration tests for the new runc hooks
This patch adds a test based on real world usage of runc hooks (libnvidia-container). We verify that mounting a library inside a container and running ldconfig succeeds. Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
This commit is contained in:
@@ -35,7 +35,7 @@ func TestUnmarshalHooks(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(hooks[hookName], hookCmd) {
|
||||
if !reflect.DeepEqual(hooks[hookName], configs.HookList{hookCmd}) {
|
||||
t.Errorf("Expected %s to equal %+v but it was %+v", hookName, hookCmd, hooks[hookName])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user