From bed5f5d88c3d9008658073943c341136a988e3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 12 Jul 2016 06:28:01 +0200 Subject: [PATCH] tests: regression test for #1990 QubesOS/qubes-issues#1990 --- tests/network.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/network.py b/tests/network.py index eeab8053..536f6b70 100644 --- a/tests/network.py +++ b/tests/network.py @@ -334,6 +334,21 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin): self.assertNotEqual(self.run_cmd(self.testvm1, self.ping_ip), 0, "Spoofed ping should be blocked") + def test_100_late_xldevd_startup(self): + """Regression test for #1990""" + self.qc.unlock_db() + # Simulater late xl devd startup + cmd = "systemctl stop xendriverdomain" + if self.run_cmd(self.testnetvm, cmd) != 0: + self.fail("Command '%s' failed" % cmd) + self.testvm1.start() + + cmd = "systemctl start xendriverdomain" + if self.run_cmd(self.testnetvm, cmd) != 0: + self.fail("Command '%s' failed" % cmd) + + self.assertEqual(self.run_cmd(self.testvm1, self.ping_ip), 0) + class VmUpdatesMixin(qubes.tests.SystemTestsMixin): """ Tests for VM updates