From b9cc36b6b6fae7bc0f3f0f4f93d0a06bd65ae411 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Fri, 14 May 2021 15:54:31 +0200 Subject: [PATCH] fix: fixed core test --- core/core_test.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/core_test.go b/core/core_test.go index eef5589f..296e980b 100644 --- a/core/core_test.go +++ b/core/core_test.go @@ -102,9 +102,19 @@ func TestCoreExec(t *testing.T) { stdout string }{ {"foo", []string{}, "", `exec: "foo": executable file not found in $PATH`, ""}, - {"ps", []string{"-someinvalidflag"}, "", "exit status 1", ""}, + {"ps", []string{"-someinvalidflag"}, + `error: process ID list syntax error + +Usage: + ps [options] + + Try 'ps --help ' + or 'ps --help ' + for additional help text. + +For more details see ps(1).`, "exit status 1", ""}, {"true", []string{}, "", "", ""}, - {"head", []string{"/path/to/file/that/does/not/exist"}, "", "exit status 1", ""}, + {"head", []string{"/path/to/file/that/does/not/exist"}, "/usr/bin/head: cannot open '/path/to/file/that/does/not/exist' for reading: No such file or directory", "exit status 1", ""}, } for _, u := range units {