X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/52c8fd376a75558657969cdf11955334e95d9e83..a8378b8deaa2bbf9d2c154d9d9bb072538c288cc:/sdk/cli/test/test_crunch-job.rb diff --git a/sdk/cli/test/test_crunch-job.rb b/sdk/cli/test/test_crunch-job.rb index 22d756a8c8..847f994f48 100644 --- a/sdk/cli/test/test_crunch-job.rb +++ b/sdk/cli/test/test_crunch-job.rb @@ -8,6 +8,7 @@ class TestCrunchJob < Minitest::Test JOBSPEC = { grep_local: { + owner_uuid: 'zzzzz-j7d0g-it30l961gq3t0oi', script: 'grep', script_version: 'master', repository: File.absolute_path('../../../..', __FILE__), @@ -91,10 +92,18 @@ class TestCrunchJob < Minitest::Test tryjobrecord j, binstubs: ['clean_fail'] end assert_match /Failing mount stub was called/, err - assert_match /Clean work dirs: exit 1\n$/, err + assert_match /clean work dirs: exit 44\n$/, err assert_equal SPECIAL_EXIT[:EX_RETRY_UNLOCKED], $?.exitstatus end + def test_output_collection_owner_uuid + j = jobspec :grep_local + out, err = capture_subprocess_io do + tryjobrecord j, binstubs: ['output_coll_owner'] + end + assert_match /owner_uuid: #{j['owner_uuid']}/, err + end + def test_docker_image_missing skip 'API bug: it refuses to create this job in Running state' out, err = capture_subprocess_io do