Disable test for UserHomeDir.
authorDr. Tobias Quathamer <toddy@debian.org>
Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)
committerShengjing Zhu <zhsj@debian.org>
Wed, 11 Jan 2023 08:33:29 +0000 (08:33 +0000)
On Debian buildds, the user home dir does not exist, so this test fails.

Gbp-Pq: Name 0001-Disable-test-for-UserHomeDir.patch

src/os/os_test.go

index 3721e15027d5b5b9286fc73d5827a83adcc90c95..cfad4182024e23b9cea9a027ec0e1dd3ef2130e6 100644 (file)
@@ -2536,6 +2536,8 @@ func TestUserHomeDir(t *testing.T) {
        if err != nil {
                t.Skipf("UserHomeDir failed: %v", err)
        }
+       // On Debian buildds, the user home dir does not exist.
+       t.Skip("UserHomeDir does not exist on Debian buildds.")
        fi, err := Stat(dir)
        if err != nil {
                t.Fatal(err)