From 10b000fb50a81a9e7da19987e16101fc4eddf568 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 04:23:16 +0200 Subject: Merging debian version 252.26-1~deb12u1. Signed-off-by: Daniel Baumann --- debian/tests/boot-and-services | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'debian/tests/boot-and-services') diff --git a/debian/tests/boot-and-services b/debian/tests/boot-and-services index 1208922..e507aa6 100755 --- a/debian/tests/boot-and-services +++ b/debian/tests/boot-and-services @@ -124,32 +124,6 @@ class ServicesTest(unittest.TestCase): self.assertIn(b'\nP: /devices/', out) self.active_unit('systemd-udevd') - def test_tmp_mount(self): - # check if we want to mount /tmp in fstab - want_tmp_mount = False - try: - with open('/etc/fstab') as f: - for l in f: - try: - if not l.startswith('#') and l.split()[1] in ('/tmp', '/tmp/'): - want_tmp_mount = True - break - except IndexError: - pass - except FileNotFoundError: - pass - - # ensure that we actually do/don't have a /tmp mount - (status, status_out) = subprocess.getstatusoutput('systemctl status tmp.mount') - findmnt = subprocess.call(['findmnt', '-n', '/tmp'], stdout=subprocess.PIPE) - if want_tmp_mount: - self.assertEqual(status, 0, status_out) - self.assertEqual(findmnt, 0) - else: - # 4 is correct (since upstream commit ca473d57), accept 3 for systemd <= 230 - self.assertIn(status, [3, 4], status_out) - self.assertNotEqual(findmnt, 0) - @unittest.skipIf('TEST_UPSTREAM' in os.environ, 'Debian specific configuration, N/A for upstream') def test_tmp_cleanup(self): -- cgit v1.2.3