Skip to content

Commit

Permalink
Make generate_tests.py work with relative --apps-dir values (#7851)
Browse files Browse the repository at this point in the history
In #7806 I goofed and made the `--apps-dir` option work only with
absolute paths. This patch fixes that.
  • Loading branch information
SpecLad authored May 7, 2024
1 parent dc74a20 commit ab83ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/iam/rules/tests/generate_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand Down

0 comments on commit ab83ba0

Please sign in to comment.