summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/cases/systemd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/cases/systemd.py b/meta/lib/oeqa/runtime/cases/systemd.py
index db69384c8a..460b8fc3a1 100644
--- a/meta/lib/oeqa/runtime/cases/systemd.py
+++ b/meta/lib/oeqa/runtime/cases/systemd.py
@@ -11,11 +11,11 @@ from oeqa.core.decorator.data import skipIfNotFeature
11class SystemdTest(OERuntimeTestCase): 11class SystemdTest(OERuntimeTestCase):
12 12
13 def systemctl(self, action='', target='', expected=0, verbose=False): 13 def systemctl(self, action='', target='', expected=0, verbose=False):
14 command = 'systemctl %s %s' % (action, target) 14 command = 'SYSTEMD_BUS_TIMEOUT=240s systemctl %s %s' % (action, target)
15 status, output = self.target.run(command) 15 status, output = self.target.run(command)
16 message = '\n'.join([command, output]) 16 message = '\n'.join([command, output])
17 if status != expected and verbose: 17 if status != expected and verbose:
18 cmd = 'systemctl status --full %s' % target 18 cmd = 'SYSTEMD_BUS_TIMEOUT=240s systemctl status --full %s' % target
19 message += self.target.run(cmd)[1] 19 message += self.target.run(cmd)[1]
20 self.assertEqual(status, expected, message) 20 self.assertEqual(status, expected, message)
21 return output 21 return output
@@ -63,7 +63,7 @@ class SystemdBasicTests(SystemdTest):
63 """ 63 """
64 endtime = time.time() + (60 * 2) 64 endtime = time.time() + (60 * 2)
65 while True: 65 while True:
66 status, output = self.target.run('systemctl --state=activating') 66 status, output = self.target.run('SYSTEMD_BUS_TIMEOUT=240s systemctl --state=activating')
67 if "0 loaded units listed" in output: 67 if "0 loaded units listed" in output:
68 return (True, '') 68 return (True, '')
69 if time.time() >= endtime: 69 if time.time() >= endtime: