better logical operation for xexec command output

This commit is contained in:
Julien Neuhart
2019-07-23 16:25:55 +02:00
parent c7d9e24c00
commit 0b2312a407
2 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ func TestCommandContext(t *testing.T) {
logger := xlogtest.DebugLogger()
// should pipe command output as
// xlog.Logger has a xlog.DebugLevel.
cmd, err := CommandContext(context.Background(), logger, "echo")
cmd, err := CommandContext(context.Background(), logger, "echo", "Hello", "World")
assert.Nil(t, err)
LogBeforeExecute(logger, cmd)
// should not pipe command output as