Disable test for UserHomeDir.
authorDr. Tobias Quathamer <toddy@debian.org>
Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)
committerWilliam 'jawn-smith' Wilson <jawn-smith@ubuntu.com>
Tue, 6 Dec 2022 19:39:48 +0000 (19:39 +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 4124be13cc5421d5c0809405e7242830fb62aa03..43c499daaab3ab9dc56932cbcf7270aea7a3dfea 100644 (file)
@@ -2534,6 +2534,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)