Don't use telnet for TFM test jobs

As TFM LAVA FVP tests are only monitor jobs, dont use telnet sessions
instead tell the FVP to output to stdout, and tell LAVA to use that as
the shell connection.

Change-Id: I0849ba1fc9419ff32bec1db02fd6b342a41a020c
diff --git a/tfm_ci_pylib/lava_rpc_connector.py b/tfm_ci_pylib/lava_rpc_connector.py
index a0255d8..d954d64 100644
--- a/tfm_ci_pylib/lava_rpc_connector.py
+++ b/tfm_ci_pylib/lava_rpc_connector.py
@@ -149,6 +149,19 @@
                 print(E)
             return False
 
+    def device_type_from_def(self, job_data):
+        def_yaml = yaml.load(job_data)
+        return(def_yaml['device_type'])
+
+    def has_device_type(self, job_data):
+        d_type = self.device_type_from_def(job_data)
+        all_d = self.scheduler.devices.list()
+        for device in all_d:
+            if device['type'] == d_type:
+                if device['health'] in ['Good', 'Unknown']:
+                    return(True)
+        return(False)
+
     def submit_job(self, job_definition):
         """ Will submit a yaml definition pointed by job_definition after
         validating it againist the remote backend. Returns resulting job id,