Update mnt command test path

You cannot use an abs path inside the conatiner's rootfs.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-05-07 14:46:19 -07:00
parent 364d8e1505
commit 8ef205cd1c
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ func TestMountCmds(t *testing.T) {
config := newTemplateConfig(rootfs) config := newTemplateConfig(rootfs)
config.Mounts = append(config.Mounts, &configs.Mount{ config.Mounts = append(config.Mounts, &configs.Mount{
Source: tmpDir, Source: tmpDir,
Destination: filepath.Join(rootfs, "tmp"), Destination: "/tmp",
Device: "bind", Device: "bind",
Flags: syscall.MS_BIND | syscall.MS_REC, Flags: syscall.MS_BIND | syscall.MS_REC,
PremountCmds: []configs.Command{ PremountCmds: []configs.Command{