Disable test for UserHomeDir.
authorDr. Tobias Quathamer <toddy@debian.org>
Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)
committerRaspbian forward porter <root@raspbian.org>
Fri, 27 Aug 2021 07:38:43 +0000 (08:38 +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 e8c64510f500d4d5cf256baf17443dd0e940c5dc..8485c855411e40d6cc7621380654ab197feb46cc 100644 (file)
@@ -2446,6 +2446,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)