check err

pull/5150/head
Medya Gh 2019-08-21 14:25:00 -07:00
parent 0f0def79ce
commit ac254bc785
1 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,10 @@ func TestConfig(t *testing.T) {
}
for _, tc := range tests {
stdout, stderr := mk.RunCommand(tc.cmd, false)
stdout, stderr, err := mk.RunCommand(tc.cmd, false)
if err != nil {
t.Logf("error running config test command (might be okay): %v ", err)
}
if !compare(tc.stdout, stdout) {
t.Fatalf("Expected stdout to be: %s. Stdout was: %s Stderr: %s", tc.stdout, stdout, stderr)
}