From ab83ba010e2544c93e4d65c30f864bfe196f06de Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Tue, 7 May 2024 18:47:07 +0300 Subject: [PATCH] Make `generate_tests.py` work with relative `--apps-dir` values (#7851) In #7806 I goofed and made the `--apps-dir` option work only with absolute paths. This patch fixes that. --- cvat/apps/iam/rules/tests/generate_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat/apps/iam/rules/tests/generate_tests.py b/cvat/apps/iam/rules/tests/generate_tests.py index b6f95e63af4b..254930e73d61 100755 --- a/cvat/apps/iam/rules/tests/generate_tests.py +++ b/cvat/apps/iam/rules/tests/generate_tests.py @@ -35,7 +35,7 @@ def parse_args(args: Optional[Sequence[str]] = None) -> Namespace: def call_generator(generator_path: Path, gen_params: Namespace) -> None: rules_dir = generator_path.parents[2] subprocess.check_call( - [sys.executable, generator_path, rules_dir / 'tests/configs'], cwd=rules_dir + [sys.executable, generator_path.relative_to(rules_dir), 'tests/configs'], cwd=rules_dir )