[Pkg-puppet-devel] [facter] 108/352: (fact-79) Don't try 'gem install json' on windows

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit e81bd67b183bdf2fde4571b2f188f1fc48c94264
Author: Kylo Ginsberg <kylo at puppetlabs.com>
Date:   Mon Dec 23 13:15:25 2013 -0800

    (fact-79) Don't try 'gem install json' on windows
---
 acceptance/tests/facter_json_output_validates.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/acceptance/tests/facter_json_output_validates.rb b/acceptance/tests/facter_json_output_validates.rb
index b76c28b..a2c320d 100644
--- a/acceptance/tests/facter_json_output_validates.rb
+++ b/acceptance/tests/facter_json_output_validates.rb
@@ -5,8 +5,7 @@ test_name "Running facter --json should validate against the schema"
 
 agents.each do |agent|
   step "Agent #{agent}: Install json gem (needed on older platforms)"
-  win_cmd_prefix = 'cmd /c ' if agent['platform'] =~ /windows/
-  on(agent, "#{win_cmd_prefix}gem install json")
+  on(agent, "gem install json") unless agent['platform'] =~ /windows/
 
   step "Agent #{agent}: run 'facter --json' and validate"
   on(agent, facter('--json')) do

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list