mesos-gtest-runner.py fails on systems without a separate ulimit binary (i.e. CentOS 7).
The problem arises in this call. Seems that it can be fixed by passing a shell=True argument to subprocess.check_output().
Another problem is ROOT_* tests which should be ran as root. For root ulimit -u will most likely return "unlimited", which will again crash the runner.