yao/system/process_test.go
2022-07-17 16:12:48 +08:00

16 lines
287 B
Go

package system
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/yaoapp/gou"
)
func TestProcessReturn(t *testing.T) {
output, err := gou.NewProcess("yao.system.Exec", "echo", "hello").Exec()
if err != nil {
t.Fatal(err)
}
assert.Equal(t, "hello", output)
}