blob: 95a7b15f102900c93b6083dc923c08c00edaa427 [file] [log] [blame]
package action
import (
"os"
"testing"
"github.com/Masterminds/glide/msg"
)
func TestPlugin(t *testing.T) {
wd, _ := os.Getwd()
os.Chdir("../testdata/plugin")
msg.Default.PanicOnDie = true
cmd := "hello"
args := []string{"a", "b"}
// FIXME: Trapping the panic is the nice thing to do.
Plugin(cmd, args)
os.Chdir(wd)
}