Do not mess with PERLLIB in crunch-job tests; let run-tests.sh do that.
authorTom Clegg <tom@curoverse.com>
Thu, 30 Jul 2015 15:56:43 +0000 (11:56 -0400)
committerTom Clegg <tom@curoverse.com>
Thu, 30 Jul 2015 15:56:43 +0000 (11:56 -0400)
Replace this with mocking crunch-refresh-trigger, so crunchenv still
has a reason to live.

sdk/cli/test/test_crunch-job.rb

index 4aea60aa00222a0b1a8b1eb95fff73c417a6d4e1..22d756a8c81f8ae64d8602925ab25fda9bbe156b 100644 (file)
@@ -25,7 +25,8 @@ class TestCrunchJob < Minitest::Test
   # Return environment suitable for running crunch-job.
   def crunchenv opts={}
     env = ENV.to_h
-    env['PERLLIB'] = File.absolute_path('../../../perl/lib', __FILE__)
+    env['CRUNCH_REFRESH_TRIGGER'] =
+      File.absolute_path('../../../../tmp/crunch-refresh-trigger', __FILE__)
     env
   end