Skip to content

Commit

Permalink
Merge pull request ManageIQ#23231 from Fryguy/fix_test_contamination
Browse files Browse the repository at this point in the history
Fix issue where test leaves a dirty git tree
  • Loading branch information
agrare committed Oct 14, 2024
2 parents 0d17c4d + a4da531 commit 1a3ceee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/models/manageiq/providers/embedded_ansible_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
let(:manager) { provider.automation_manager }

let(:consolidated_repo_path) { Ansible::Content::PLUGIN_CONTENT_DIR }
let(:manager_repo_path) { GitRepository::GIT_REPO_DIRECTORY }

before do
EvmSpecHelper.local_miq_server
described_class.seed
end

after do
FileUtils.rm_rf(Dir.glob(File.join(manager_repo_path, "*")))
FileUtils.rm_rf(Dir.glob(File.join(consolidated_repo_path, "*")))
end

Expand Down

0 comments on commit 1a3ceee

Please sign in to comment.