Skip to content

Commit f3da271

Browse files
committed
redhat integration test: ensure libglib is not mounted in from host
1 parent c3ad5b4 commit f3da271

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

integration/gpu_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ func TestDocker_Nvidia(t *testing.T) {
6969
if !assert.NoError(t, err, "failed to run dnf in the inner container") {
7070
t.Logf("dnf output:\n%s", strings.TrimSpace(out))
7171
}
72+
73+
// Make sure libglib.so is not present in the inner container.
74+
out, err = execContainerCmd(ctx, t, ctID, "docker", "exec", "workspace_cvm", "ls", "-1", "/usr/lib/x86_64-linux-gnu/libglib*")
75+
// An error is expected here.
76+
assert.Error(t, err, "libglib should not be present in the inner container")
77+
assert.Contains(t, out, "No such file or directory", "libglib should not be present in the inner container")
7278
})
7379

7480
t.Run("InnerUsrLibDirOverride", func(t *testing.T) {

0 commit comments

Comments
 (0)