diff --git a/examples/test.py b/examples/test.py index 5acd2fa..cc6ca1e 100755 --- a/examples/test.py +++ b/examples/test.py @@ -1,7 +1,9 @@ #!/usr/bin/env python3 import logging +import os import shlex +import shutil import subprocess import sys from argparse import ArgumentParser, Namespace @@ -152,4 +154,11 @@ def main(legacy_workspace: bool) -> int: # Ensure we can invoke the script from various places chdir(Path(__file__).parent) + logging.info("---------------") + logging.info(Path.cwd()) + logging.info(os.listdir(".")) + logging.info(shutil.which("bazel")) + logging.info(shutil.which("bazelisk")) + subprocess.run(["bazel", "info", "release"], check=False) + sys.exit(main(args.legacy_workspace))