diff options
Diffstat (limited to 'meta/lib/oeqa/controllers')
-rw-r--r-- | meta/lib/oeqa/controllers/masterimage.py | 6 |
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 | |||
20 | import oeqa.targetcontrol | 20 | import oeqa.targetcontrol |
21 | import oeqa.utils.sshcontrol as sshcontrol | 21 | import oeqa.utils.sshcontrol as sshcontrol |
22 | import oeqa.utils.commands as commands | 22 | import oeqa.utils.commands as commands |
23 | from oeqa.utils import CommandError | ||
23 | 24 | ||
24 | from abc import ABCMeta, abstractmethod | 25 | from 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: |