summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/target/ssh.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/core/target/ssh.py')
-rw-r--r--meta/lib/oeqa/core/target/ssh.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py
index f4dd0ca417..09cdd14c75 100644
--- a/meta/lib/oeqa/core/target/ssh.py
+++ b/meta/lib/oeqa/core/target/ssh.py
@@ -48,8 +48,6 @@ class OESSHTarget(OETarget):
48 if port: 48 if port:
49 self.ssh = self.ssh + [ '-p', port ] 49 self.ssh = self.ssh + [ '-p', port ]
50 self.scp = self.scp + [ '-P', port ] 50 self.scp = self.scp + [ '-P', port ]
51 self._monitor_dumper = None
52 self.target_dumper = None
53 51
54 def start(self, **kwargs): 52 def start(self, **kwargs):
55 pass 53 pass
@@ -57,15 +55,6 @@ class OESSHTarget(OETarget):
57 def stop(self, **kwargs): 55 def stop(self, **kwargs):
58 pass 56 pass
59 57
60 @property
61 def monitor_dumper(self):
62 return self._monitor_dumper
63
64 @monitor_dumper.setter
65 def monitor_dumper(self, dumper):
66 self._monitor_dumper = dumper
67 self.monitor_dumper.dump_monitor()
68
69 def _run(self, command, timeout=None, ignore_status=True): 58 def _run(self, command, timeout=None, ignore_status=True):
70 """ 59 """
71 Runs command in target using SSHProcess. 60 Runs command in target using SSHProcess.
@@ -104,14 +93,7 @@ class OESSHTarget(OETarget):
104 93
105 status, output = self._run(sshCmd, processTimeout, ignore_status) 94 status, output = self._run(sshCmd, processTimeout, ignore_status)
106 self.logger.debug('Command: %s\nStatus: %d Output: %s\n' % (command, status, output)) 95 self.logger.debug('Command: %s\nStatus: %d Output: %s\n' % (command, status, output))
107 if (status == 255) and (('No route to host') in output): 96
108 if self.monitor_dumper:
109 self.monitor_dumper.dump_monitor()
110 if status == 255:
111 if self.target_dumper:
112 self.target_dumper.dump_target()
113 if self.monitor_dumper:
114 self.monitor_dumper.dump_monitor()
115 return (status, output) 97 return (status, output)
116 98
117 def copyTo(self, localSrc, remoteDst): 99 def copyTo(self, localSrc, remoteDst):