Description: Disable tests failing in Debian build context Author: Taavi Väänänen Forwarded: not-needed --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/transaction_test.go +++ b/transaction_test.go @@ -223,6 +223,7 @@ } func TestPAM_ConfDir(t *testing.T) { + t.Skip("Fails to run in Debian package build context") u, _ := user.Current() c := Credentials{ // the custom service always permits even with wrong password. @@ -286,6 +287,7 @@ } func TestPAM_ConfDir_InfoMessage(t *testing.T) { + t.Skip("Fails to run in Debian package build context") u, _ := user.Current() var infoText string tx, err := StartConfDir("echo-service", u.Username, @@ -326,6 +328,7 @@ } func TestPAM_ConfDir_Deny(t *testing.T) { + t.Skip("Fails to run in Debian package build context") if !CheckPamHasStartConfdir() { t.Skip("this requires PAM with Conf dir support") } @@ -357,6 +360,7 @@ } func TestPAM_ConfDir_PromptForUserName(t *testing.T) { + t.Skip("Fails to run in Debian package build context") c := Credentials{ User: "testuser", // the custom service only cares about correct user name. @@ -382,6 +386,7 @@ } func TestPAM_ConfDir_WrongUserName(t *testing.T) { + t.Skip("Fails to run in Debian package build context") c := Credentials{ User: "wronguser", Password: "wrongsecret", @@ -637,6 +642,7 @@ } func Test_Finalizer(t *testing.T) { + t.Skip("Fails to run in Debian package build context") if !CheckPamHasStartConfdir() { t.Skip("this requires PAM with Conf dir support") }