From 084fed8f5b34e298b16fc19e05702f2a99ac01cd Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Fri, 11 Dec 2015 13:40:19 -0500 Subject: [PATCH] Send run_tempest.sh output to a logfile Otherwise the run_tempest.sh output is not captured anywhere and can not be used. run_tempest.sh outputs the test results as well as the failures and their traces. Change-Id: I1894b3dd409a0978363d9e38856b2ec003d425c4 --- packstack/plugins/postscript_951.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packstack/plugins/postscript_951.py b/packstack/plugins/postscript_951.py index cf89cdbbf..157063d4b 100644 --- a/packstack/plugins/postscript_951.py +++ b/packstack/plugins/postscript_951.py @@ -17,6 +17,7 @@ Plugin responsible for post-installation configuration """ from packstack.installer import utils +from packstack.installer import basedefs # ------------- Postscript Packstack Plugin Initialization -------------- @@ -51,8 +52,9 @@ def initSequences(controller): # -------------------------- step functions -------------------------- def run_tempest(config, messages): + logfile = basedefs.DIR_LOG + "/run_tempest.log" print("Running Tempest on %s" % config['CONFIG_TEMPEST_HOST']) server = utils.ScriptRunner(config['CONFIG_TEMPEST_HOST']) - server.append('/var/lib/tempest/run_tempest.sh -V %s' - % config['CONFIG_RUN_TEMPEST_TESTS']) + server.append('/var/lib/tempest/run_tempest.sh -V %s > %s' + % (config['CONFIG_RUN_TEMPEST_TESTS'], logfile)) server.execute()