summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2006-05-31 18:03:28 +0000
committerluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2006-05-31 18:03:28 +0000
commit7f2504dd4e8f4b717eaa65acb68245cdfe65c442 (patch)
tree8864d2278b6692f528a0ad1f76832fa66994e55b
parent75b18351461551b66cd68c17ab8a72608a5c6428 (diff)
fixing test so that it works even if rubylib is not set
git-svn-id: http://reductivelabs.com/svn/facter/trunk@127 1f5c1d6a-bddf-0310-8f58-fc49e503516a
-rwxr-xr-xtests/tc_facterbin.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tc_facterbin.rb b/tests/tc_facterbin.rb
index 2fa12e7..8a18ef4 100755
--- a/tests/tc_facterbin.rb
+++ b/tests/tc_facterbin.rb
@@ -14,7 +14,11 @@ require 'test/unit'
ENV["PATH"] = File.join($facterbase, "bin") + ":" + ENV["PATH"]
# and then the library directory
-ENV["RUBYLIB"] += ":" + libdir
+if ENV["RUBYLIB"]
+ ENV["RUBYLIB"] += ":" + libdir
+else
+ ENV["RUBYLIB"] = libdir
+end
class TestFacterBin < Test::Unit::TestCase
def test_version