cram/tools/python/bzl_pytest_shim.py

11 lines
212 B
Python
Raw Permalink Normal View History

2022-07-29 05:38:26 +00:00
"""A shim for executing pytest."""
import sys
import pytest
if __name__ == "__main__":
cmdline = ["--ignore=external"] + sys.argv[1:]
print(cmdline, file=sys.stderr)
sys.exit(pytest.main(cmdline))