From 874e2a89300aa890156dc329e784b798b151aa2a Mon Sep 17 00:00:00 2001 From: Nick LaMuro Date: Wed, 19 Jun 2019 10:08:52 -0500 Subject: [PATCH] [EmbeddedAnsible::ConfigurationScriptSource] stub REPO_DIR Stubbing the REPO_DIR in travis attempts to prevent issues with parallel specs running on travis that cause the file system to become contaminated. --- .../automation_manager/configuration_script_source_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source_spec.rb b/spec/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source_spec.rb index 93293068e514..399a3ae5313a 100644 --- a/spec/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source_spec.rb +++ b/spec/models/manageiq/providers/embedded_ansible/automation_manager/configuration_script_source_spec.rb @@ -59,6 +59,9 @@ repo.create_branch("other_branch") # END: Setup local repo used for this spec + # Stub REPO_DIR for travis + stub_const("#{described_class}::REPO_DIR", Pathname.new(Dir.mktmpdir)) + EvmSpecHelper.assign_embedded_ansible_role end