diff --git a/.github/actions/collect_data/src/test_parser.py b/.github/actions/collect_data/src/test_parser.py index c6ec6dc..503ca0d 100644 --- a/.github/actions/collect_data/src/test_parser.py +++ b/.github/actions/collect_data/src/test_parser.py @@ -29,16 +29,16 @@ def parse_file(filepath: str) -> List[Test]: try: return parser.parse(filepath) except Exception as e: - logger.error( - f"Error parsing file: {filepath} using parser: {type(parser).__name__}" - ) + logger.error(f"Error parsing file: {filepath} using parser: {type(parser).__name__}") logger.error(f"Exception: {e}") logger.error("Trying next parser") logger.error(f"No parser available for file: {filepath}") return [] + if __name__ == "__main__": import sys + if len(sys.argv) != 2: print("Usage: python test_parser.py ") sys.exit(1)