aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2016-09-05 17:13:09 +0200
committerThomas Duval <thomas.duval@orange.com>2016-09-20 10:38:37 +0200
commitf81ecda07c3203856af134aca2b397711432a58f (patch)
tree950f15825f3ba1d098e95fa0b7bb256aa28a3a47 /tests
parent1dcfe5a30a080297a3f31ec9dc38e19ba741107f (diff)
Add an option to force the name of the logfile.
Change-Id: Iea61a1045c9d60a157725dfc7df8dad5b9ca905a (cherry picked from commit 347dbd9d0ec41fe4951210eea9dad2b41bf7f142)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_tests.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
index 8030294f..2ed011be 100755
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -67,11 +67,12 @@ def test_federation():
def test_moon_openstack():
- cmd = "moon test --password console --self"
+ log_filename = "moonclient_selftest.log"
+ cmd = "moon test --password console --self --logfile {}".format(log_filename)
- ret_val = functest_utils.execute_command(cmd, logger)
+ ret_val = functest_utils.execute_command(cmd, exit_on_error=False)
- return ret_val
+ return ret_val, open(log_filename, "rt").read()
def main():
@@ -88,6 +89,10 @@ def main():
else:
logger.info("OS MOON ERROR")
test_status = 'FAIL'
+ logger.info("Errors from OpenStack tests:")
+ logger.info(result_os[1])
+ logger.info("Errors from Federation tests:")
+ logger.info(result_odl[1])
details = {
'timestart': start_time,