diff --git a/lib/analyze_test_results.py b/lib/analyze_test_results.py index cc7cbe7..f26198c 100644 --- a/lib/analyze_test_results.py +++ b/lib/analyze_test_results.py @@ -174,9 +174,11 @@ for test in tests: if test["test_arg"]: test_display_name += " (%s)" % test["test_arg"][:8] test_display_name += ":" + if test["test_serie"] != "default": + test_display_name = "(%s)" % test["test_serie"][:15] result = OK if test["results"]["main_result"] == "success" else FAIL - print("{test: <25}{result}".format(test=test_display_name, result=result)) + print("{test: <30}{result}".format(test=test_display_name, result=result)) print() print("Level results") @@ -210,6 +212,7 @@ summary = { "tests": [{ "test_type": t["test_type"], "test_arg": t["test_arg"], + "test_serie": t["test_serie"], "main_result": t["results"]["main_result"] } for t in tests], "levels": {level.level: level.passed for level in levels[1:]}, diff --git a/lib/tests_coordination.sh b/lib/tests_coordination.sh index 0ab5762..3ce3be0 100644 --- a/lib/tests_coordination.sh +++ b/lib/tests_coordination.sh @@ -363,9 +363,14 @@ break_before_continue () { start_test () { + local current_test_serie=$(jq -r '.test_serie' $testfile) + [[ "$current_test_serie" != "default" ]] \ + && current_test_serie="($current_test_serie)" + || current_test_serie="" + total_number_of_test=$(ls $TEST_CONTEXT/tests/*.json | wc -l) - log_title "$1 [Test $current_test_number/$total_number_of_test]" + log_title "$current_test_serie $1 [Test $current_test_number/$total_number_of_test]" # Increment the value of the current test current_test_number=$((current_test_number+1))