test: skip TEST-69-SHUTDOWN on Debian
authorLuca Boccassi <bluca@debian.org>
Thu, 4 Jul 2024 00:01:08 +0000 (01:01 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 5 Jul 2024 09:38:42 +0000 (11:38 +0200)
There is a regression in the login package, skip the test until
it is fixed. https://bugs.debian.org/1075733

(cherry picked from commit 92d9d5ca70b0a8b3aea12f24e9cd0f770c31a94c)

test/units/TEST-69-SHUTDOWN.py

index eb790f45da7ed9d72c111d0ba0ebe0577027ec06..d0441641352cbeaa95b6c6c579fbe163e75291f7 100755 (executable)
@@ -9,6 +9,13 @@ import pexpect
 
 
 def main():
+    # TODO: drop once https://bugs.debian.org/1075733 is fixed
+    with open("/usr/lib/os-release") as f:
+        for line in f:
+            if line.startswith("ID="):
+                if "debian" in line:
+                    sys.exit(77)
+
     logger = logging.getLogger("test-shutdown")
 
     consoles = []