Skip to content

Commit

Permalink
Fix issue where test leaves a dirty git tree
Browse files Browse the repository at this point in the history
In 195a04f, a test was removed that had created a local repo in the
git_repos dir, but the cleanup from the after block was not removed.
This cleanup removes the .gitkeep file, which causes a dirty tree.
  • Loading branch information
Fryguy committed Oct 14, 2024
1 parent 0d17c4d commit a4da531
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 a4da531

Please sign in to comment.