source/tools/python/bzl_pytest_shim.py

12 lines
213 B
Python
Raw Normal View History

2021-04-09 07:16:16 +00:00
"""A shim for executing pytest."""
2021-04-08 06:37:51 +00:00
import sys
import pytest
2021-05-31 18:28:46 +00:00
2021-04-08 06:37:51 +00:00
if __name__ == "__main__":
cmdline = ["--ignore=external"] + sys.argv[1:]
2021-08-21 17:49:56 +00:00
print(cmdline, file=sys.stderr)
2021-04-08 06:37:51 +00:00
sys.exit(pytest.main(cmdline))