summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/controllers')
-rw-r--r--meta/lib/oeqa/controllers/masterimage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/controllers/masterimage.py b/meta/lib/oeqa/controllers/masterimage.py
index d151e24bd7..f2585d4860 100644
--- a/meta/lib/oeqa/controllers/masterimage.py
+++ b/meta/lib/oeqa/controllers/masterimage.py
@@ -20,6 +20,7 @@ import subprocess
20import oeqa.targetcontrol 20import oeqa.targetcontrol
21import oeqa.utils.sshcontrol as sshcontrol 21import oeqa.utils.sshcontrol as sshcontrol
22import oeqa.utils.commands as commands 22import oeqa.utils.commands as commands
23from oeqa.utils import CommandError
23 24
24from abc import ABCMeta, abstractmethod 25from abc import ABCMeta, abstractmethod
25 26
@@ -94,7 +95,10 @@ class MasterImageHardwareTarget(oeqa.targetcontrol.BaseTarget):
94 def power_ctl(self, msg): 95 def power_ctl(self, msg):
95 if self.powercontrol_cmd: 96 if self.powercontrol_cmd:
96 cmd = "%s %s" % (self.powercontrol_cmd, msg) 97 cmd = "%s %s" % (self.powercontrol_cmd, msg)
97 commands.runCmd(cmd, preexec_fn=os.setsid, env=self.origenv) 98 try:
99 commands.runCmd(cmd, assert_error=False, preexec_fn=os.setsid, env=self.origenv)
100 except CommandError as e:
101 bb.fatal(str(e))
98 102
99 def power_cycle(self, conn): 103 def power_cycle(self, conn):
100 if self.powercontrol_cmd: 104 if self.powercontrol_cmd: