summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Goncalves <carlos.goncalves@neclab.eu>2016-09-05 15:01:28 +0200
committerCarlos Goncalves <carlos.goncalves@neclab.eu>2016-09-05 16:09:06 +0200
commit50bac2fa1346bdd637f817fe77f5e043b0e8149f (patch)
tree178f8fbb8ae675dc0a9011b17849d732753b4518
parenta84bbc24ee6a7c9965708d3ddc415804c2736f98 (diff)
Redirect dominio's output to a log file
Change-Id: Ic4daa57ddbf6587660f982acd915cd4363d3ccbc Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu> (cherry picked from commit e0e414259aded62e66b2795ae789ae81d632902b)
-rwxr-xr-xtestcases/features/domino.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/testcases/features/domino.py b/testcases/features/domino.py
index cc98f546d..c717c060e 100755
--- a/testcases/features/domino.py
+++ b/testcases/features/domino.py
@@ -14,9 +14,9 @@
# 0.3: add report flag to push results when needed
#
+import argparse
import time
-import argparse
import functest.utils.functest_logger as ft_logger
import functest.utils.functest_utils as functest_utils
@@ -31,15 +31,20 @@ functest_yaml = functest_utils.get_functest_yaml()
dirs = functest_yaml.get('general').get('directories')
DOMINO_REPO = dirs.get('dir_repo_domino')
+RESULTS_DIR = functest_utils.get_parameter_from_yaml(
+ 'general.directories.dir_results')
logger = ft_logger.Logger("domino").getLogger()
def main():
cmd = 'cd %s && ./tests/run_multinode.sh' % DOMINO_REPO
+ log_file = RESULTS_DIR + "/domino.log"
start_time = time.time()
- ret = functest_utils.execute_command(cmd, logger, exit_on_error=False)
+ ret = functest_utils.execute_command(cmd,
+ exit_on_error=False,
+ output_file=log_file)
stop_time = time.time()
duration = round(stop_time - start_time, 1)