diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-05 21:49:24 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-05 21:49:24 +0000 |
| commit | 7afa69cf4fcf0a42f4c3cbfce407f341b8a0d81d (patch) | |
| tree | 9929dd23e12ee077e711cca07e08b690b98bd3e2 /test | |
| parent | 54c387f36aa6032a8e16fa8a621c1ad803cf263a (diff) | |
| download | puppet-7afa69cf4fcf0a42f4c3cbfce407f341b8a0d81d.tar.gz puppet-7afa69cf4fcf0a42f4c3cbfce407f341b8a0d81d.tar.xz puppet-7afa69cf4fcf0a42f4c3cbfce407f341b8a0d81d.zip | |
Fixing rake test so it works with the new puppet loader
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2056 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/lib/puppettest.rb | 2 | ||||
| -rwxr-xr-x | test/types/file.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb index dc56d3138..4bf3bc54c 100755 --- a/test/lib/puppettest.rb +++ b/test/lib/puppettest.rb @@ -71,7 +71,7 @@ module PuppetTest end def rake? - $0 =~ /rake_test_loader/ + $0 =~ /test_loader/ end def setup diff --git a/test/types/file.rb b/test/types/file.rb index 61ee14694..321bfaef6 100755 --- a/test/types/file.rb +++ b/test/types/file.rb @@ -267,6 +267,7 @@ class TestFile < Test::Unit::TestCase def test_groupasroot file = mktestfile() [%x{groups}.chomp.split(/ /), Process.groups].flatten.each { |group| + next unless Puppet::Util.gid(group) # grr. assert_nothing_raised() { file[:group] = group } |
