From ebf41fe1330c68b6b8369c4f51d7f5963d8ef595 Mon Sep 17 00:00:00 2001 From: Raymond Wong Date: Fri, 25 Apr 2014 14:01:12 -0700 Subject: [PATCH] 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 --- refstack/web.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/refstack/web.py b/refstack/web.py index 1adb9557..1310ff79 100755 --- a/refstack/web.py +++ b/refstack/web.py @@ -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'])