From 029dfa34101d640ed4f2ee16b019b14618836370 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 15 Jun 2020 09:35:27 +0200 Subject: [PATCH] tests: Exclude TestLogin.testExpired on RHEL RHEL 8's PAM has some weird bug where it rejects the *current* password when changing an expired one. This isn't trivial to reproduce on the CLI and thus has no bugzilla yet. --- tests/run-test.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/run-test.sh b/tests/run-test.sh index f1163d1..cfce859 100755 --- a/tests/run-test.sh +++ b/tests/run-test.sh @@ -59,9 +59,17 @@ if [ -n "$test_basic" ]; then # TestFirewall.testNetworkingPage is still too unstable TESTS="$TESTS TestFirewall.test{AddCustomServices,AddServices,FirewallPage,MultipleZones}" +# testExpired in RHEL 8 is a PAM bug -- it shouldn't pwquality the old password when having to set a new one, that's completely counter-productive and wrong + if [ "${TEST_OS#rhel}" != "$TEST_OS" ]; then + TESTS="$TESTS + TestLogin.test{Basic,Conversation,FailingWebsocket,FailingWebsocketSafari,FailingWebsocketSafariNoCA,Logging,Raw,SELinuxRestrictedUser,SessionRecordingShell,UnsupportedBrowser}" + else + TESTS="$TESTS + TestLogin" + fi + TESTS="$TESTS TestAccounts - TestLogin TestNetworking TestSOS" fi