From 1cc7dd7183f09a6b5bd752577e83d6ff2851771b Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Mon, 8 Feb 2010 11:32:59 +0000 Subject: [PATCH] catching the failure in sfa test methods --- system/TestPlc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/system/TestPlc.py b/system/TestPlc.py index 6a93dcc..487884f 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -978,15 +978,13 @@ class TestPlc: def import_sfa(self): "sfa-import-plc" auth=self.plc_spec['sfa']['SFA_REGISTRY_ROOT_AUTH'] - self.run_in_guest('sfa-import-plc.py') + return self.run_in_guest('sfa-import-plc.py')==0 # not needed anymore # self.run_in_guest('cp /etc/sfa/authorities/%s/%s.pkey /etc/sfa/authorities/server.key'%(auth,auth)) - return True def start_sfa(self): "service sfa start" - self.run_in_guest('service sfa start') - return True + return self.run_in_guest('service sfa start')==0 def setup_sfa(self): "sfi client configuration" -- 2.43.0