INNER CODE UNIT · Python

main

alper-han/CrossMacro · scripts/ci/run-tests.py:144

def main():
    if len(sys.argv) != 2 or sys.argv[1] not in {"Linux", "Windows", "MacOS"}:
        raise ValueError("Expected Linux, Windows or MacOS")
    root = Path(__file__).resolve().parents[2]
    validate_project_coverage(root)
    return run_suites(sys.argv[1], root)


if __name__ == "__main__":
    try:
        sys.exit(main())
    except (ValueError, OSError, subprocess.TimeoutExpired) as error:
        print(f"Test execution failed: {error}", file=sys.stderr)
        sys.exit(1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…