summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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