summaryrefslogtreecommitdiffstats
path: root/test/executables
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-24 15:58:07 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-24 15:58:07 +0000
commit5ce5b95af489685f64dbaa6189f7569e976e9dc5 (patch)
tree370d6d0510d32f4742377b11b0e070cdb103b887 /test/executables
parent84bf2896a80bc527f345e49ffb8fb1b5817fdfe6 (diff)
downloadpuppet-5ce5b95af489685f64dbaa6189f7569e976e9dc5.tar.gz
puppet-5ce5b95af489685f64dbaa6189f7569e976e9dc5.tar.xz
puppet-5ce5b95af489685f64dbaa6189f7569e976e9dc5.zip
removing any direct references to /tmp in tests
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@757 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/executables')
-rwxr-xr-xtest/executables/puppetbin.rb2
-rwxr-xr-xtest/executables/puppetca.rb2
-rwxr-xr-xtest/executables/puppetmodule.rb1
3 files changed, 2 insertions, 3 deletions
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)
}