Windows CI: Turn off failing unit tests pkg\integration
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
4852d877f6
commit
51832bf31f
1 changed files with 29 additions and 0 deletions
|
@ -14,6 +14,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsKilledFalseWithNonKilledProcess(t *testing.T) {
|
func TestIsKilledFalseWithNonKilledProcess(t *testing.T) {
|
||||||
|
// TODO Windows: Port this test
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("Needs porting to Windows")
|
||||||
|
}
|
||||||
|
|
||||||
lsCmd := exec.Command("ls")
|
lsCmd := exec.Command("ls")
|
||||||
lsCmd.Start()
|
lsCmd.Start()
|
||||||
// Wait for it to finish
|
// Wait for it to finish
|
||||||
|
@ -134,6 +139,11 @@ Try 'ls --help' for more information.
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRunCommandWithOutputForDurationFinished(t *testing.T) {
|
func TestRunCommandWithOutputForDurationFinished(t *testing.T) {
|
||||||
|
// TODO Windows: Port this test
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("Needs porting to Windows")
|
||||||
|
}
|
||||||
|
|
||||||
cmd := exec.Command("ls")
|
cmd := exec.Command("ls")
|
||||||
out, exitCode, timedOut, err := RunCommandWithOutputForDuration(cmd, 50*time.Millisecond)
|
out, exitCode, timedOut, err := RunCommandWithOutputForDuration(cmd, 50*time.Millisecond)
|
||||||
if out == "" || exitCode != 0 || timedOut || err != nil {
|
if out == "" || exitCode != 0 || timedOut || err != nil {
|
||||||
|
@ -142,6 +152,10 @@ func TestRunCommandWithOutputForDurationFinished(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRunCommandWithOutputForDurationKilled(t *testing.T) {
|
func TestRunCommandWithOutputForDurationKilled(t *testing.T) {
|
||||||
|
// TODO Windows: Port this test
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("Needs porting to Windows")
|
||||||
|
}
|
||||||
cmd := exec.Command("sh", "-c", "while true ; do echo 1 ; sleep .1 ; done")
|
cmd := exec.Command("sh", "-c", "while true ; do echo 1 ; sleep .1 ; done")
|
||||||
out, exitCode, timedOut, err := RunCommandWithOutputForDuration(cmd, 500*time.Millisecond)
|
out, exitCode, timedOut, err := RunCommandWithOutputForDuration(cmd, 500*time.Millisecond)
|
||||||
ones := strings.Split(out, "\n")
|
ones := strings.Split(out, "\n")
|
||||||
|
@ -164,6 +178,11 @@ func TestRunCommandWithOutputForDurationErrors(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRunCommandWithOutputAndTimeoutFinished(t *testing.T) {
|
func TestRunCommandWithOutputAndTimeoutFinished(t *testing.T) {
|
||||||
|
// TODO Windows: Port this test
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("Needs porting to Windows")
|
||||||
|
}
|
||||||
|
|
||||||
cmd := exec.Command("ls")
|
cmd := exec.Command("ls")
|
||||||
out, exitCode, err := RunCommandWithOutputAndTimeout(cmd, 50*time.Millisecond)
|
out, exitCode, err := RunCommandWithOutputAndTimeout(cmd, 50*time.Millisecond)
|
||||||
if out == "" || exitCode != 0 || err != nil {
|
if out == "" || exitCode != 0 || err != nil {
|
||||||
|
@ -172,6 +191,11 @@ func TestRunCommandWithOutputAndTimeoutFinished(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRunCommandWithOutputAndTimeoutKilled(t *testing.T) {
|
func TestRunCommandWithOutputAndTimeoutKilled(t *testing.T) {
|
||||||
|
// TODO Windows: Port this test
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("Needs porting to Windows")
|
||||||
|
}
|
||||||
|
|
||||||
cmd := exec.Command("sh", "-c", "while true ; do echo 1 ; sleep .1 ; done")
|
cmd := exec.Command("sh", "-c", "while true ; do echo 1 ; sleep .1 ; done")
|
||||||
out, exitCode, err := RunCommandWithOutputAndTimeout(cmd, 500*time.Millisecond)
|
out, exitCode, err := RunCommandWithOutputAndTimeout(cmd, 500*time.Millisecond)
|
||||||
ones := strings.Split(out, "\n")
|
ones := strings.Split(out, "\n")
|
||||||
|
@ -194,6 +218,11 @@ func TestRunCommandWithOutputAndTimeoutErrors(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRunCommand(t *testing.T) {
|
func TestRunCommand(t *testing.T) {
|
||||||
|
// TODO Windows: Port this test
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("Needs porting to Windows")
|
||||||
|
}
|
||||||
|
|
||||||
p := "$PATH"
|
p := "$PATH"
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
p = "%PATH%"
|
p = "%PATH%"
|
||||||
|
|
Loading…
Reference in a new issue