From 79c21ad6d2a4364ad41c3ea2d9fee5de965355da Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Wed, 12 Jun 2024 09:23:28 -0500 Subject: [PATCH] Open the full path for tests/validate_automatus_metadata.py --- tests/validate_automatus_metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/validate_automatus_metadata.py b/tests/validate_automatus_metadata.py index 1284144eadb4..c42ca0e7ccaa 100755 --- a/tests/validate_automatus_metadata.py +++ b/tests/validate_automatus_metadata.py @@ -39,7 +39,8 @@ def main() -> int: for test_file in test_files: if not _test_filename_valid(test_file) != 0: return_value = 1 - with open(test_file, "r") as f: + full_path = os.path.join(args.root, test_file) + with open(full_path, "r") as f: for line in f: if not line.startswith("#"): break