Disable test for UserHomeDir.
authorDr. Tobias Quathamer <toddy@debian.org>
Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)
committerDr. Tobias Quathamer <toddy@debian.org>
Sat, 19 Oct 2019 11:30:36 +0000 (12:30 +0100)
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 b94ab0d23209ba802bbc6393d6262b903ad0714e..9c3acd70d4386a399fcccae4530abd2f6449bfdb 100644 (file)
@@ -2346,6 +2346,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)