diff --git a/third_party/code.google.com/p/rsc/fuse/fuse_test.go b/third_party/code.google.com/p/rsc/fuse/fuse_test.go index b2e25b9ac..bec896fe1 100644 --- a/third_party/code.google.com/p/rsc/fuse/fuse_test.go +++ b/third_party/code.google.com/p/rsc/fuse/fuse_test.go @@ -5,6 +5,7 @@ package fuse import ( + "flag" "fmt" "io/ioutil" "log" @@ -15,6 +16,8 @@ import ( "time" ) +var fuseRun = flag.String("fuserun", "", "which fuse test to run. runs all if empty.") + // umount tries its best to unmount dir. func umount(dir string) { err := exec.Command("umount", dir).Run() @@ -53,8 +56,10 @@ func TestFuse(t *testing.T) { } for _, tt := range fuseTests { - t.Logf("running %T", tt.node) - tt.node.test(dir+"/"+tt.name, t) + if *fuseRun == "" || *fuseRun == tt.name { + t.Logf("running %T", tt.node) + tt.node.test(dir+"/"+tt.name, t) + } } }