From 7f2504dd4e8f4b717eaa65acb68245cdfe65c442 Mon Sep 17 00:00:00 2001 From: luke Date: Wed, 31 May 2006 18:03:28 +0000 Subject: 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 --- tests/tc_facterbin.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit