1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-13 17:22:27 +08:00

add os_test.go

This commit is contained in:
dudaodong
2023-06-13 15:00:40 +08:00

View File

@@ -45,7 +45,7 @@ func TestExecCommand(t *testing.T) {
assert := internal.NewAssert(t, "TestExecCommand") assert := internal.NewAssert(t, "TestExecCommand")
// linux or mac // linux or mac
stdout, stderr, err := ExecCommand("ls", WithForeground()) stdout, stderr, err := ExecCommand("ls")
t.Log("std out: ", stdout) t.Log("std out: ", stdout)
t.Log("std err: ", stderr) t.Log("std err: ", stderr)
assert.Equal("", stderr) assert.Equal("", stderr)