Browse Source

Don't ignore the return code

Hamilton Turner 10 years ago
parent
commit
d86054bc18
1 changed files with 6 additions and 4 deletions
  1. 6 4
      toolset/benchmark/framework_test.py

+ 6 - 4
toolset/benchmark/framework_test.py

@@ -474,8 +474,9 @@ class FrameworkTest:
     os.chdir(os.path.dirname(self.troot))
     logging.info("Running setup module start (cwd=%s)", os.path.dirname(self.troot))
     try:
-      self.setup_module.start(self, out, err)    
-      retcode = 0
+      retcode = self.setup_module.start(self, out, err)    
+      if retcode == None: 
+        retcode = 0
     except Exception:
       retcode = 1
       st = traceback.format_exc()
@@ -517,8 +518,9 @@ class FrameworkTest:
     os.chdir(os.path.dirname(self.troot))
     logging.info("Running setup module stop (cwd=%s)", os.path.dirname(self.troot))
     try:
-      self.setup_module.stop(out, err)
-      retcode = 0
+      retcode = self.setup_module.stop(out, err)
+      if retcode == None: 
+        retcode = 0
     except Exception:
       retcode = 1 
       st = traceback.format_exc()