- out, err = capture_subprocess_io do
- if !system("arv", "tag", "add", "#{value}", "--object", "testing")
- raise "Command failure running `arv tag` with arguments #{args}: #{$?}"
- end
- end
- if err.length > 0 || out.length == 0
- raise "Could not create Arvados object with given value"
- end
- out = out.delete!("\n")
- return out
+ out, err = capture_subprocess_io do
+ system("arv", "tag", "add", value, "--object", "testing")
+ end
+ assert_equal '', err
+ assert $?.success?, "Command failure running `arv tag`: #{$?}"
+ assert_operator 0, :<, out.strip.length
+ out.strip