logger.debug("Finding tempest.conf file...")
tempest_conf_file = RALLY_INSTALLATION_DIR+"/tempest/for-deployment-" \
+deployment_uuid+"/tempest.conf"
- if tempest_conf_file == "":
- logger.debug(" Tempest configuration file NOT found")
+ if not os.path.isfile(tempest_conf_file):
+ logger.error(" Tempest configuration file %s NOT found." % tempest_conf_file)
return False
logger.debug(" Updating fixed_network_name...")
+USER_PASSWORD
functest_utils.execute_command(cmd,logger)
+ # Copy tempest.conf to /home/opnfv/functest/results/tempest/
+ print shutil.copyfile(tempest_conf_file,TEMPEST_RESULTS_DIR+'/tempest.conf')
return True
if CI_DEBUG == "true" or CI_DEBUG == "True":
subprocess.call(cmd_line, shell=True, stderr=subprocess.STDOUT)
else:
- if not os.path.exists(TEMPEST_RESULTS_DIR):
- os.makedirs(TEMPEST_RESULTS_DIR)
header = "Tempest environment:\n"\
" Installer: %s\n Scenario: %s\n Node: %s\n Date: %s\n" % \
(os.getenv('INSTALLER_TYPE','Unknown'), \
else:
MODE = "--set "+args.mode
+ if not os.path.exists(TEMPEST_RESULTS_DIR):
+ os.makedirs(TEMPEST_RESULTS_DIR)
+
create_tempest_resources()
configure_tempest()
run_tempest(MODE)