Skip to content

Commit 6bc65f7

Browse files
committed
Merge pull request #113 from Iristyle/fix/master/inject-CommonProgramFiles-env-var
(maint) Inject CommonProgramFiles env var
2 parents 51f20f4 + c886193 commit 6bc65f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/spec_helper_acceptance.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
end
3939

4040
agents.each do |agent|
41+
step "Emit CommonProgramFiles environment variable"
42+
program_files = agent.get_env_var('ProgramFiles').split('=')[1]
43+
agent.add_env_var('CommonProgramFiles', "#{program_files}\\Common Files")
44+
4145
step "Install sqlserver module to agent #{agent.node_name}"
4246
result = on agent, "echo #{agent['distmoduledir']}"
4347
target = result.raw_output.chomp

0 commit comments

Comments
 (0)