diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-02 20:28:45 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-02 20:28:45 +0000 |
| commit | 343dd08a4ab84bdc6947239e8c514752db219c2a (patch) | |
| tree | 438f144f98a56ef6e35e4c4b670318f15c81eb31 /test/puppettest.rb | |
| parent | 1a93c822667e6990b45f843e56d8976c51517671 (diff) | |
| download | puppet-343dd08a4ab84bdc6947239e8c514752db219c2a.tar.gz puppet-343dd08a4ab84bdc6947239e8c514752db219c2a.tar.xz puppet-343dd08a4ab84bdc6947239e8c514752db219c2a.zip | |
Fixing tests so they do not chmod /dev/null to 640 (stupid tests).
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@967 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/puppettest.rb')
| -rw-r--r-- | test/puppettest.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/puppettest.rb b/test/puppettest.rb index dc1f94def..54dfc1f17 100644 --- a/test/puppettest.rb +++ b/test/puppettest.rb @@ -50,8 +50,8 @@ module TestPuppet $VERBOSE = 1 else Puppet::Log.close - Puppet::Log.newdestination "/dev/null" - Puppet[:httplog] = "/dev/null" + Puppet::Log.newdestination tempfile() + Puppet[:httplog] = tempfile() end Puppet[:ignoreschedules] = true @@ -120,6 +120,12 @@ module TestPuppet # Just in case there are processes waiting to die... Process.waitall + if File.stat("/dev/null").mode & 007777 != 0666 + File.open("/tmp/nullfailure", "w") { |f| + f.puts self.class + } + exit(74) + end end def tempfile |
