|
@@ -121,6 +121,9 @@ func TestRegister(t *testing.T) {
|
|
|
}
|
|
|
|
|
|
func TestMount(t *testing.T) {
|
|
|
+ runtime := mkRuntime(t)
|
|
|
+ defer nuke(runtime)
|
|
|
+
|
|
|
graph := tempGraph(t)
|
|
|
defer os.RemoveAll(graph.Root)
|
|
|
archive, err := fakeTar()
|
|
@@ -144,7 +147,7 @@ func TestMount(t *testing.T) {
|
|
|
if err := os.MkdirAll(rw, 0700); err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
|
|
- if err := image.Mount(rootfs, rw); err != nil {
|
|
|
+ if err := image.Mount(runtime, rootfs, rw, "testing"); err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
|
|
// FIXME: test for mount contents
|