diff options
| author | Heschi Kreinick <heschi@google.com> | 2023-11-27 11:17:04 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-27 16:29:38 +0000 |
| commit | 325b735346247f48971d2b37d24dd180a35f391f (patch) | |
| tree | 850825c969494b7485643a570ea81e45cf9c8d9f | |
| parent | 1eadac50a566dfaa1b603ca15e8ad3cbd1c77b20 (diff) | |
| download | go-x-crypto-325b735346247f48971d2b37d24dd180a35f391f.tar.xz | |
ssh/test: skip TestSSHCLIAuth on Windowsv0.16.0
It's failing with a file permissions error:
sign_and_send_pubkey: signing using rsa-sha2-512 SHA256:Anr3LjZK8YVpjrxu79myrW9Hrb/wpcMNpVvTq/RcBm8\r\nBad permissions. Try removing permissions for user: UNKNOWN\\\\UNKNOWN (S-1-15-2-2) on file C:/b/s/w/ir/x/t/TestSSHCLIAuth1586735692/001/rsa.
For golang/go#64403
Change-Id: Iece8eac4a1ac349f9f7a273ac7389315cb96568e
Cq-Include-Trybots: luci.golang.try:x_crypto-gotip-windows-amd64-longtest,x_crypto-go1.21-windows-amd64-longtest,x_crypto-go1.20-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/545135
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Nicola Murino <nicola.murino@gmail.com>
Auto-Submit: Heschi Kreinick <heschi@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
| -rw-r--r-- | ssh/test/sshcli_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh/test/sshcli_test.go b/ssh/test/sshcli_test.go index d3b85d7..ac2f7c1 100644 --- a/ssh/test/sshcli_test.go +++ b/ssh/test/sshcli_test.go @@ -10,6 +10,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "testing" "golang.org/x/crypto/internal/testenv" @@ -34,6 +35,9 @@ func sshClient(t *testing.T) string { } func TestSSHCLIAuth(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skipf("always fails on Windows, see #64403") + } sshCLI := sshClient(t) dir := t.TempDir() keyPrivPath := filepath.Join(dir, "rsa") |
