Skip to content

Commit

Permalink
fix(test): test_cargo_audit fails on nightly
Browse files Browse the repository at this point in the history
The test fails when not run as part of PR tests. The issue is that these
tests behave differently when running as part of a PR or independently.
This makes testing and troubleshooting more difficult.

Workaround the issue by changing the directory so the command runs at
the right place.

Fixes: 8297c8f

Signed-off-by: Pablo Barbáchano <[email protected]>
  • Loading branch information
pb8o committed Oct 29, 2023
1 parent 435a850 commit 9ebada5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/framework/ab_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def git_ab_test_host_command_if_pr(
if is_pr():
git_ab_test_host_command(command, comparator=comparator)
else:
utils.run_cmd(command, **kwargs)
utils.run_cmd(command, **kwargs, cwd=Path.cwd().parent)


def git_ab_test_host_command(
Expand Down

0 comments on commit 9ebada5

Please sign in to comment.