mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
fix the test serie name
This commit is contained in:
parent
eca2043406
commit
9663d9b478
2 changed files with 6 additions and 2 deletions
|
@ -168,14 +168,16 @@ test_types = {
|
||||||
OK = ' \033[1m\033[92mOK\033[0m '
|
OK = ' \033[1m\033[92mOK\033[0m '
|
||||||
FAIL = '\033[91mfail\033[0m'
|
FAIL = '\033[91mfail\033[0m'
|
||||||
|
|
||||||
|
latest_test_serie = "default"
|
||||||
print()
|
print()
|
||||||
for test in tests:
|
for test in tests:
|
||||||
test_display_name = test_types[test["test_type"]]
|
test_display_name = test_types[test["test_type"]]
|
||||||
if test["test_arg"]:
|
if test["test_arg"]:
|
||||||
test_display_name += " (%s)" % test["test_arg"][:8]
|
test_display_name += " (%s)" % test["test_arg"][:8]
|
||||||
test_display_name += ":"
|
test_display_name += ":"
|
||||||
if test["test_serie"] != "default":
|
if test["test_serie"] != latest_test_serie:
|
||||||
test_display_name = "(%s)" % test["test_serie"][:15]
|
latest_test_serie = test["test_serie"]
|
||||||
|
print("------------- %s -------------" % latest_test_serie)
|
||||||
|
|
||||||
result = OK if test["results"]["main_result"] == "success" else FAIL
|
result = OK if test["results"]["main_result"] == "success" else FAIL
|
||||||
print("{test: <30}{result}".format(test=test_display_name, result=result))
|
print("{test: <30}{result}".format(test=test_display_name, result=result))
|
||||||
|
|
|
@ -136,6 +136,8 @@ parse_check_process() {
|
||||||
# upgrade from previous commits
|
# upgrade from previous commits
|
||||||
if [[ "$test_serie_id" != "1" ]]
|
if [[ "$test_serie_id" != "1" ]]
|
||||||
then
|
then
|
||||||
|
test_serie=${tests_serie//;; }
|
||||||
|
|
||||||
is_test_enabled setup_root && add_test "TEST_INSTALL" "root"
|
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_sub_dir && add_test "TEST_INSTALL" "subdir"
|
||||||
is_test_enabled setup_nourl && add_test "TEST_INSTALL" "nourl"
|
is_test_enabled setup_nourl && add_test "TEST_INSTALL" "nourl"
|
||||||
|
|
Loading…
Add table
Reference in a new issue