[libc-commits] [libc] [libc] integration test outputs header in build (PR #98385)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Jul 10 14:05:13 PDT 2024
================
@@ -71,4 +63,15 @@ def test_generate_header(self):
if __name__ == "__main__":
+ parser = argparse.ArgumentParser(description="TestHeaderGenIntegration arguments")
+ parser.add_argument(
+ "--output_dir", type=str, help="Output directory for generated headers"
+ )
+ args, remaining_argv = parser.parse_known_args()
+
+ if args.output_dir:
+ os.environ["TEST_OUTPUT_DIR"] = args.output_dir
----------------
michaelrj-google wrote:
this should be passed as a regular argument since it's all within the same python file instead of setting an environment variable
https://github.com/llvm/llvm-project/pull/98385
More information about the libc-commits
mailing list