mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
print skip file path
This commit is contained in:
+2
-2
@@ -428,7 +428,7 @@ def validate_json_file(file_list):
|
|||||||
"""
|
"""
|
||||||
for json_file in set(file_list):
|
for json_file in set(file_list):
|
||||||
if not json_file.endswith(".json"):
|
if not json_file.endswith(".json"):
|
||||||
logger.log_warning("Only JSON file format can be validated.")
|
logger.log_warning("Only JSON file format can be validated, skip: {}".format(json_file))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
logger.color_print("Start to validate JSON file: {}".format(json_file), "GREEN")
|
logger.color_print("Start to validate JSON file: {}".format(json_file), "GREEN")
|
||||||
@@ -446,7 +446,7 @@ def prettify_json_file(file_list):
|
|||||||
"""
|
"""
|
||||||
for json_file in set(file_list):
|
for json_file in set(file_list):
|
||||||
if not json_file.endswith(".json"):
|
if not json_file.endswith(".json"):
|
||||||
logger.log_warning("Only JSON file format can be prettified.")
|
logger.log_warning("Only JSON file format can be prettified, skip: {}".format(json_file))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
logger.color_print("Start to prettify JSON file: {}".format(json_file), "GREEN")
|
logger.color_print("Start to prettify JSON file: {}".format(json_file), "GREEN")
|
||||||
|
|||||||
Reference in New Issue
Block a user