Skip to content

Commit

Permalink
Fix libgit2 test
Browse files Browse the repository at this point in the history
Modified cleanup code in the test to uninstall the installed pygit2
  • Loading branch information
DeepthiYV committed Aug 13, 2024
1 parent b955beb commit 4f98731
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/console/libgit2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ sub run {
}

sub clean_up {
assert_script_run "pip3.$python_sub_version uninstall pygit2 -y --break-system-packages";
zypper_call "rm python3$python_sub_version-pygit2";
my $out = script_output "python3.$python_sub_version pygit2_test.py", proceed_on_failure => 1;
zypper_call "rm python3$python_sub_version";
assert_script_run "rm -rf libgit2";
die("uninstalling of python3$python_sub_version-pygit2 failed") if (index($out, "ModuleNotFoundError") == -1);
}

sub post_fail_hook {
Expand Down

0 comments on commit 4f98731

Please sign in to comment.