Add a new static Call method to Subprocess

This refactors a bunch of code commonly used to part a string of arguments,
pass them to a subprocess, wait, then check the return code.

Change-Id: I99f84b6f2c87f9b7bb329f0b165db5fc7064784a
Reviewed-on: http://gerrit.cloudera.org:8080/1484
Tested-by: Internal Jenkins
Reviewed-by: Mike Percy <mpercy@cloudera.com>
(cherry picked from commit 3d9f611130b498511af71134f14c7560875a437d)
Reviewed-on: http://gerrit.cloudera.org:8080/1495
Reviewed-by: Jean-Daniel Cryans
Tested-by: Jean-Daniel Cryans
3 files changed