fix the test serie name

This commit is contained in:
Kay0u 2020-12-21 14:16:20 +01:00
parent eca2043406
commit 9663d9b478
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 6 additions and 2 deletions

View file

@ -168,14 +168,16 @@ test_types = {
OK = ' \033[1m\033[92mOK\033[0m '
FAIL = '\033[91mfail\033[0m'
latest_test_serie = "default"
print()
for test in tests:
test_display_name = test_types[test["test_type"]]
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]
if test["test_serie"] != latest_test_serie:
latest_test_serie = test["test_serie"]
print("------------- %s -------------" % latest_test_serie)
result = OK if test["results"]["main_result"] == "success" else FAIL
print("{test: <30}{result}".format(test=test_display_name, result=result))

View file

@ -136,6 +136,8 @@ parse_check_process() {
# upgrade from previous commits
if [[ "$test_serie_id" != "1" ]]
then
test_serie=${tests_serie//;; }
is_test_enabled setup_root && add_test "TEST_INSTALL" "root"
is_test_enabled setup_sub_dir && add_test "TEST_INSTALL" "subdir"
is_test_enabled setup_nourl && add_test "TEST_INSTALL" "nourl"