Merge pull request #247 from picatz/fix-core-test-exec

run head in core test with a file that doesn't exist to pass on macOS
This commit is contained in:
Simone Margaritelli 2018-05-01 11:58:46 +02:00 committed by GitHub
commit da5b6da44b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ func TestCoreExec(t *testing.T) {
{"foo", []string{}, "", `exec: "foo": executable file not found in $PATH`, `ERROR for 'foo []': exec: "foo": executable file not found in $PATH`},
{"ps", []string{"-someinvalidflag"}, "", "exit status 1", "ERROR for 'ps [-someinvalidflag]': exit status 1"},
{"true", []string{}, "", "", ""},
{"head", []string{"/proc/self/comm"}, "head", "", ""},
{"head", []string{"/path/to/file/that/does/not/exist"}, "", "exit status 1", "ERROR for 'head [/path/to/file/that/does/not/exist]': exit status 1"},
}
for _, u := range units {