summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-05 21:49:24 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-01-05 21:49:24 +0000
commit7afa69cf4fcf0a42f4c3cbfce407f341b8a0d81d (patch)
tree9929dd23e12ee077e711cca07e08b690b98bd3e2 /test
parent54c387f36aa6032a8e16fa8a621c1ad803cf263a (diff)
downloadpuppet-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-xtest/lib/puppettest.rb2
-rwxr-xr-xtest/types/file.rb1
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
}