github.com/alde/glide@v0.0.0-20160309204240-d5fc6b676a75/action/plugin_test.go (about) 1 package action 2 3 import ( 4 "os" 5 "testing" 6 7 "github.com/Masterminds/glide/msg" 8 ) 9 10 func TestPlugin(t *testing.T) { 11 wd, _ := os.Getwd() 12 os.Chdir("../testdata/plugin") 13 msg.Default.PanicOnDie = true 14 cmd := "hello" 15 args := []string{"a", "b"} 16 // FIXME: Trapping the panic is the nice thing to do. 17 Plugin(cmd, args) 18 os.Chdir(wd) 19 }