From 5ce5b95af489685f64dbaa6189f7569e976e9dc5 Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 24 Nov 2005 15:58:07 +0000 Subject: removing any direct references to /tmp in tests git-svn-id: https://reductivelabs.com/svn/puppet/trunk@757 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/executables/puppetbin.rb | 2 +- test/executables/puppetca.rb | 2 +- test/executables/puppetmodule.rb | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'test/executables') diff --git a/test/executables/puppetbin.rb b/test/executables/puppetbin.rb index 4c1d2a24c..d075d8431 100755 --- a/test/executables/puppetbin.rb +++ b/test/executables/puppetbin.rb @@ -31,7 +31,7 @@ class TestPuppetBin < Test::Unit::TestCase def test_execution file = mktestmanifest() - @@tmpfiles << "/tmp/puppetbintesting" + @@tmpfiles << tempfile() output = nil cmd = "puppet" diff --git a/test/executables/puppetca.rb b/test/executables/puppetca.rb index 2fed58557..819ecf702 100755 --- a/test/executables/puppetca.rb +++ b/test/executables/puppetca.rb @@ -37,7 +37,7 @@ class TestPuppetCA < Test::Unit::TestCase def test_signing ca = nil - Puppet[:ssldir] = "/tmp/puppetcatest" + Puppet[:ssldir] = tempfile() @@tmpfiles << Puppet[:ssldir] Puppet[:autosign] = false assert_nothing_raised { diff --git a/test/executables/puppetmodule.rb b/test/executables/puppetmodule.rb index ba356f6cc..2e97a963a 100755 --- a/test/executables/puppetmodule.rb +++ b/test/executables/puppetmodule.rb @@ -47,7 +47,6 @@ class TestPuppetModule < Test::Unit::TestCase ENV["CFALLCLASSES"] = "yaytest:all" - Puppet.err :mark assert_nothing_raised { system(cmd + " " + file) } -- cgit