github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/updater/command/command_windows_test.go (about) 1 // Copyright 2016 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 //go:build windows 5 // +build windows 6 7 package command 8 9 import ( 10 "strings" 11 "testing" 12 "time" 13 14 "github.com/stretchr/testify/assert" 15 ) 16 17 func TestExecEchoWindows(t *testing.T) { 18 result, err := Exec("cmd", []string{"/c", "echo", "arg1", "arg2"}, time.Second, testLog) 19 assert.NoError(t, err) 20 assert.Equal(t, strings.TrimSpace(result.Stdout.String()), "arg1 arg2") 21 }