From 351bc82cac3a0f693f81ce17e2c1033764a9501b Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Tue, 20 Jul 2021 14:06:19 +0000 Subject: [PATCH] tests: micronet: update defaults for results+logging Signed-off-by: Christian Hopps --- tests/topotests/pytest.ini | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/tests/topotests/pytest.ini b/tests/topotests/pytest.ini index 885c249b31..33c5635eb2 100644 --- a/tests/topotests/pytest.ini +++ b/tests/topotests/pytest.ini @@ -1,7 +1,34 @@ # Skip pytests example directory [pytest] + +# We always turn this on inside conftest.py, default shown +# addopts = --junitxml=/topotests.xml + +log_level = DEBUG +log_format = %(asctime)s,%(msecs)03d %(levelname)s: %(name)s: %(message)s +log_date_format = %Y-%m-%d %H:%M:%S + +# If verbose is specifyied log_cli will be set to 1, it can also be specified +# here or on the CLI. +# log_cli = 1 +log_cli_level = INFO +log_cli_format = %(asctime)s,%(msecs)03d %(levelname)s: %(name)s: %(message)s +log_cli_date_format = %Y-%m-%d %H:%M:%S + +# By default this is palced in /exec.log +# log_file = /exec.log +log_file_level = DEBUG +log_file_format = %(asctime)s,%(msecs)03d %(levelname)s: %(name)s: %(message)s +log_file_date_format = %Y-%m-%d %H:%M:%S + +junit_logging = all +junit_log_passing_tests = true + norecursedirs = .git example_test example_topojson_test lib docker +# Directory to store test results and run logs in, default shown +# rundir = /tmp/topotests + # Markers # # Please consult the documentation and discuss with TSC members before applying @@ -54,4 +81,4 @@ markers = # memleak_path = /tmp/memleak_ # Output files will be named after the testname: # /tmp/memleak_test_ospf_topo1.txt -#memleak_path = +memleak_path = /tmp/memleak_