mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
Merge pull request #11397 from ahmetalpbalkan/win-cli/build-warning
Add cli build warning about chmod bits on windows
This commit is contained in:
@@ -4623,8 +4623,19 @@ func TestBuildStderr(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if stderr != "" {
|
||||
t.Fatalf("Stderr should have been empty, instead its: %q", stderr)
|
||||
|
||||
if runtime.GOOS == "windows" {
|
||||
// stderr might contain a security warning on windows
|
||||
lines := strings.Split(stderr, "\n")
|
||||
for _, v := range lines {
|
||||
if v != "" && !strings.Contains(v, "SECURITY WARNING:") {
|
||||
t.Fatalf("Stderr contains unexpected output line: %q", v)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if stderr != "" {
|
||||
t.Fatalf("Stderr should have been empty, instead its: %q", stderr)
|
||||
}
|
||||
}
|
||||
logDone("build - testing stderr")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user