mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
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:
commit
da5b6da44b
1 changed files with 1 additions and 1 deletions
|
@ -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`},
|
{"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"},
|
{"ps", []string{"-someinvalidflag"}, "", "exit status 1", "ERROR for 'ps [-someinvalidflag]': exit status 1"},
|
||||||
{"true", []string{}, "", "", ""},
|
{"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 {
|
for _, u := range units {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue