test: skip TEST-69-SHUTDOWN on Debian
authorLuca Boccassi <bluca@debian.org>
Thu, 4 Jul 2024 00:01:08 +0000 (01:01 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 4 Jul 2024 07:07:22 +0000 (09:07 +0200)
There is a regression in the login package, skip the test until
it is fixed. https://bugs.debian.org/1075733

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 = []