"...text-generation-inference.git" did not exist on "47954b81e9988ae069c8b790ce81f0cf2d372378"
Commit 29b9c44c authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

Allow conda's generated files.

Summary: The conda build process generates some files of its own, which we don't want to catch in our test for copyright notices.

Reviewed By: nikhilaravi, patricklabatut

Differential Revision: D20868566

fbshipit-source-id: 76a786a3eb9a674d59e630cc06f346e8b82258a4
parent b87058c6
...@@ -55,8 +55,17 @@ class TestBuild(unittest.TestCase): ...@@ -55,8 +55,17 @@ class TestBuild(unittest.TestCase):
+ " All rights reserved.\n" + " All rights reserved.\n"
) )
conda_generated_files = [
"run_test.py",
"run_test.sh",
"conda_test_runner.sh",
"conda_test_env_vars.sh",
]
for extension in extensions: for extension in extensions:
for i in root_dir.glob(f"**/*.{extension}"): for i in root_dir.glob(f"**/*.{extension}"):
if i.name in conda_generated_files:
continue
with open(i) as f: with open(i) as f:
firstline = f.readline() firstline = f.readline()
if firstline.startswith(("# -*-", "#!")): if firstline.startswith(("# -*-", "#!")):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment