From a4da53106082ff965d957e14dbfb4b206d05d874 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Mon, 14 Oct 2024 12:57:52 -0400 Subject: [PATCH] Fix issue where test leaves a dirty git tree In 195a04f0, 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. --- spec/models/manageiq/providers/embedded_ansible_spec.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/models/manageiq/providers/embedded_ansible_spec.rb b/spec/models/manageiq/providers/embedded_ansible_spec.rb index 49275293cc8..25a546f7d9c 100644 --- a/spec/models/manageiq/providers/embedded_ansible_spec.rb +++ b/spec/models/manageiq/providers/embedded_ansible_spec.rb @@ -4,7 +4,6 @@ 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 @@ -12,7 +11,6 @@ end after do - FileUtils.rm_rf(Dir.glob(File.join(manager_repo_path, "*"))) FileUtils.rm_rf(Dir.glob(File.join(consolidated_repo_path, "*"))) end