Skip to content

Commit 356fb57

Browse files
author
Kurt Wall
committed
Merge pull request #2743 from Iristyle/ticket/stable/PUP-2364-fix-vardir-Windows-2003R2
(PUP-2364) Quote vardir to work on Windows 2003R2
2 parents be96256 + 192a2d0 commit 356fb57

5 files changed

+6
-6
lines changed

acceptance/tests/environment/use_enc_environment_for_pluginsync.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636

3737
agents.each do |agent|
3838
run_agent_on(agent, "--no-daemonize --onetime --server #{master}")
39-
on agent, "cat #{agent.puppet['vardir']}/lib/puppet/foo.rb"
39+
on agent, "cat \"#{agent.puppet['vardir']}/lib/puppet/foo.rb\""
4040
assert_match(/#special_version/, stdout, "The plugin from environment 'special' was not synced")
41-
on agent, "rm -rf #{agent.puppet['vardir']}/lib"
41+
on agent, "rm -rf \"#{agent.puppet['vardir']}/lib\""
4242
end
4343
end

acceptance/tests/pluginsync/files_earlier_in_modulepath_take_precendence.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
with_puppet_running_on master, master_opts, basedir do
4343
agents.each do |agent|
4444
on(agent, puppet('agent', "-t --server #{master}"))
45-
on agent, "cat #{agent.puppet['vardir']}/lib/foo.rb" do
45+
on agent, "cat \"#{agent.puppet['vardir']}/lib/foo.rb\"" do
4646
assert_match(/from the first module/, stdout, "The synced plugin was not found or the wrong version was synced")
4747
end
4848
end

acceptance/tests/ticket_6541_invalid_filebucket_files.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
agents.each do |agent|
44
target=agent.tmpfile('6541-target')
55

6-
on agent, host_command('rm -rf #{host.puppet["vardir"]}/*bucket')
6+
on agent, host_command("rm -rf \"#{host.puppet['vardir']}/*bucket\"")
77

88
step "write zero length file"
99
manifest = "file { '#{target}': content => '' }"

acceptance/tests/ticket_6734_6256_5530_5503.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
with_puppet_running_on master, {} do
88
step "Check permissions on puppet/rrd/"
9-
on master, "ls -l #{master.puppet['vardir']} | grep rrd | awk '{print $3\" \"$4}'" do
9+
on master, "ls -l \"#{master.puppet['vardir']}\" | grep rrd | awk '{print $3\" \"$4}'" do
1010
assert_match(/#{master['group']} #{master['group']}/, stdout, "puppet/rrd does not exist/wrong permissions")
1111
end
1212
end

acceptance/tests/ticket_9862_puppet_runs_without_service_user_or_group_present.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def missing_directory_for(agent, dir)
2323
agents.each do |agent|
2424
step "ensure puppet resets it's user/group settings"
2525
on agent, puppet('apply', '-e', '"notify { puppet_run: }"')
26-
on agent, "find #{agent.puppet['vardir']} -user existinguser" do
26+
on agent, "find \"#{agent.puppet['vardir']}\" -user existinguser" do
2727
assert_equal('',stdout)
2828
end
2929
on agent, puppet('resource', 'user', 'existinguser', 'ensure=absent')

0 commit comments

Comments
 (0)