help="optional, target product, always runs as eng",
)
parser.add_argument(
"modules",
nargs="+",
help="modules to compare builds with genrule sandboxing enabled/not",
)
parser.add_argument(
"--check-determinism",
action="store_true",
help="Don't check for working sandboxing. Instead, run two default builds, and compare their outputs. This is used to check for nondeterminsim, which would also affect the sandboxed test.",
)
parser.add_argument(
"--show-diff",
"-d",
@@ -117,10 +144,13 @@ def main():
args=parser.parse_args()
os.chdir(get_top())
out_dir=os.environ.get("OUT_DIR","out")
if"TARGET_PRODUCT"notinos.environ:
sys.exit("Please run lunch first")
ifos.environ.get("OUT_DIR","out")!="out":
sys.exit(f"This script expects OUT_DIR to be 'out', got: '{os.environ.get('OUT_DIR')}'")