mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Catch errors when building fn bin
This commit is contained in:
@@ -26,7 +26,10 @@ func TestMainCommands(t *testing.T) {
|
||||
|
||||
fnTestBin := path.Join(os.TempDir(), "fn-test")
|
||||
|
||||
exec.Command("go", "build", "-o", fnTestBin).Run()
|
||||
err := exec.Command("go", "build", "-o", fnTestBin).Run()
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to build fn: err: %s", err)
|
||||
}
|
||||
|
||||
for _, cmd := range testCommands {
|
||||
res, err := exec.Command(fnTestBin, strings.Split(cmd, " ")...).CombinedOutput()
|
||||
|
||||
Reference in New Issue
Block a user