Skip to content

Commit 36c0de7

Browse files
pb8obchalios
authored andcommitted
fix(test): test_cargo_audit fails on nightly
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]>
1 parent 978b6d8 commit 36c0de7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/framework/ab_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def git_ab_test_host_command_if_pr(
123123
if is_pr():
124124
git_ab_test_host_command(command, comparator=comparator)
125125
else:
126-
utils.run_cmd(command, **kwargs)
126+
utils.run_cmd(command, **kwargs, cwd=Path.cwd().parent)
127127

128128

129129
def git_ab_test_host_command(

0 commit comments

Comments
 (0)