summaryrefslogtreecommitdiffstats
path: root/test/executables/puppetmodule.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-10 00:10:14 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-10 00:10:14 +0000
commite5ac19668867a8adeb18066bdd1d3e201e38211c (patch)
tree64c599f45ff10ba39caf7adeef0ee8afd651373a /test/executables/puppetmodule.rb
parentdccafc7e950d9111a0a4c11afebd89e1ede5e414 (diff)
downloadpuppet-e5ac19668867a8adeb18066bdd1d3e201e38211c.tar.gz
puppet-e5ac19668867a8adeb18066bdd1d3e201e38211c.tar.xz
puppet-e5ac19668867a8adeb18066bdd1d3e201e38211c.zip
Adding some consistencies to the executable tests. All exe tests now pass on OpenBSD, although the only real problem was that ruby was in /usr/local/bin.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@795 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/executables/puppetmodule.rb')
-rwxr-xr-xtest/executables/puppetmodule.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/executables/puppetmodule.rb b/test/executables/puppetmodule.rb
index 429e29e36..c0020779d 100755
--- a/test/executables/puppetmodule.rb
+++ b/test/executables/puppetmodule.rb
@@ -10,19 +10,10 @@ require 'puppet/sslcertificates'
require 'test/unit'
require 'puppettest.rb'
-# add the bin directory to our search path
-ENV["PATH"] += ":" + File.join($puppetbase, "bin")
-
-# and then the library directories
-libdirs = $:.find_all { |dir|
- dir =~ /puppet/ or dir =~ /\.\./
-}
-ENV["RUBYLIB"] = libdirs.join(":")
-
$module = File.join($puppetbase, "ext", "module_puppet")
class TestPuppetModule < Test::Unit::TestCase
- include ServerTest
+ include ExeTest
def test_existence
assert(FileTest.exists?($module), "Module does not exist")