def does_dry_run_throw_error(self, cmd):
env = os.environ.copy()
if self.sanitizer == 'asan':
spectrum_asan_options(env)
try:
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True, env=env)
except Exception, e:
# OR condition is bug fix for compute shell returning negative instead of positive code
return (e.returncode > 128 or e.returncode < 0)
return False
评论列表
文章目录