From 4e695adcd0c739101c3d50431ca18b1b911c9238 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Thu, 31 Jan 2019 15:17:50 -0800 Subject: gvisor/gofer: Use pivot_root instead of chroot PiperOrigin-RevId: 231864273 Change-Id: I8545b72b615f5c2945df374b801b80be64ec3e13 --- runsc/test/root/chroot_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'runsc/test/root/chroot_test.go') diff --git a/runsc/test/root/chroot_test.go b/runsc/test/root/chroot_test.go index 89f90c3e0..0deca0532 100644 --- a/runsc/test/root/chroot_test.go +++ b/runsc/test/root/chroot_test.go @@ -118,10 +118,7 @@ func TestChrootGofer(t *testing.T) { // This where the root directory is mapped on the host and that's where the // gofer must have chroot'd to. - root, err := d.RootDirInHost() - if err != nil { - t.Fatalf("Docker.RootDirInHost(): %v", err) - } + root := "/root" for _, child := range children { childPID, err := strconv.Atoi(child) -- cgit v1.2.3