Fix crunch-run tests.
authorTom Clegg <tom@curoverse.com>
Mon, 17 Apr 2017 14:01:06 +0000 (10:01 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 17 Apr 2017 14:01:06 +0000 (10:01 -0400)
refs #11209

sdk/cli/test/binstub_arv-mount/arv-mount [new file with mode: 0755]
sdk/cli/test/binstub_clean_fail/arv-mount [moved from sdk/cli/test/binstub_clean_fail/mount with 100% similarity]
sdk/cli/test/test_crunch-job.rb

diff --git a/sdk/cli/test/binstub_arv-mount/arv-mount b/sdk/cli/test/binstub_arv-mount/arv-mount
new file mode 100755 (executable)
index 0000000..a9bf588
--- /dev/null
@@ -0,0 +1 @@
+#!/bin/bash
index 847f994f486842b69ad2436ea767649cfb1a0c64..a0fed6ee32b90022b20d3666e2272155ad40db01 100644 (file)
@@ -99,7 +99,7 @@ class TestCrunchJob < Minitest::Test
   def test_output_collection_owner_uuid
     j = jobspec :grep_local
     out, err = capture_subprocess_io do
-      tryjobrecord j, binstubs: ['output_coll_owner']
+      tryjobrecord j, binstubs: ['arv-mount', 'output_coll_owner']
     end
     assert_match /owner_uuid: #{j['owner_uuid']}/, err
   end
@@ -120,7 +120,7 @@ class TestCrunchJob < Minitest::Test
     out, err = capture_subprocess_io do
       j = jobspec :grep_local
       j[:script_version] = bogus_version
-      tryjobrecord j
+      tryjobrecord j, binstubs: ['arv-mount']
     end
     assert_match /'#{bogus_version}' not found, giving up/, err
     assert_jobfail $?