source/tools/python/bzl_pytest_shim.py

11 lines
177 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:]
sys.exit(pytest.main(cmdline))