Merge "Inheritance from Feature class"
authorTim Irnich <tim.irnich@ericsson.com>
Thu, 19 Oct 2017 08:14:00 +0000 (08:14 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 19 Oct 2017 08:14:00 +0000 (08:14 +0000)
1  2 
sdnvpn/test/functest/run_sdnvpn_tests.py

@@@ -82,16 -80,8 +80,14 @@@ class SdnvpnFunctest(base.Feature)
                      if status == "FAIL":
                          overall_status = "FAIL"
  
-         self.stop_time = time.time()
          try:
 -            gather_logs('overall')
 +            installer_type = str(os.environ['INSTALLER_TYPE'].lower())
 +            if installer_type in ["fuel", "apex"]:
 +                gather_logs('overall')
 +            else:
 +                self.__logger.info("Skipping log gathering because installer"
 +                                   "type %s is neither fuel nor apex" %
 +                                   installer_type)
          except Exception as ex:
              self.__logger.error(('Something went wrong in the Log gathering.'
                                   'Ex: %s, Trace: %s')