Temporary fix for get-script to use the new execute_test.
In https://review.openstack.org/#/c/86419/, tools/execute_test.py has been moved to tools/execute_test/execute_test. This change fixes the get-script API to return the execute_test at the new location. This is a temporary fix so that people can continue to collect data using the local Refstack installation with Docker. For the future, there is a proposal to remove the get-script API and replaced it with getting the execute_test from github directly. Change-Id: I6aff5a1f00dbc18b6389a04210f883a7e3520769
This commit is contained in:
parent
5d4ba1797c
commit
ebf41fe133
@ -15,6 +15,7 @@
|
||||
#
|
||||
|
||||
import flask
|
||||
import os
|
||||
from flask import abort, flash, request, redirect, url_for, \
|
||||
render_template, g, session, make_response, send_file
|
||||
from flask_mail import Mail
|
||||
@ -335,7 +336,8 @@ def test_cloud(cloud_id):
|
||||
def get_script():
|
||||
"""Return a generic python script to be run a remote test runner."""
|
||||
|
||||
return send_file('tools/execute_test.py', mimetype='text/plain')
|
||||
filepath = os.path.join('tools', 'execute_test', 'execute_test')
|
||||
return send_file(filepath, mimetype='text/plain')
|
||||
|
||||
|
||||
@app.route('/get-miniconf', methods=['GET'])
|
||||
|
Loading…
Reference in New Issue
Block a user