Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1016 from whopper/maint/quotes-external-test
(maint) Fix tests on Windows Server 2003 (again)
  • Loading branch information
Michael Smith committed Jul 6, 2015
2 parents 806002f + 20bf751 commit 5ec1c81
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -76,7 +76,7 @@
on(agent, "chmod +x '#{ext_fact_2}'")

step "Agent #{agent}: both external facts should resolve"
on(agent, facter("--external-dir #{custom_external_dir} external_fact_1 external_fact_2"))
on(agent, facter("--external-dir '#{custom_external_dir}' external_fact_1 external_fact_2"))
assert_match(/external_fact_1 => foo/, stdout)
assert_match(/external_fact_2 => bar/, stdout)

Expand All @@ -86,10 +86,10 @@
on(agent, "chmod +x '#{ext_fact_3}'")

step "Agent #{agent}: the fact value from the custom external dir should override that of facts.d"
on(agent, facter("--external-dir #{custom_external_dir} external_fact_1"))
on(agent, facter("--external-dir '#{custom_external_dir}' external_fact_1"))
assert_match(/baz/, stdout)

teardown do
on(agent, "rm -f '#{ext_fact_1} #{ext_fact_2} #{ext_fact_3}'")
on(agent, "rm -f '#{ext_fact_1}' '#{ext_fact_2}' '#{ext_fact_3}'")
end
end

0 comments on commit 5ec1c81

Please sign in to comment.