Skip to content
Snippets Groups Projects
Commit feca0e91 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

script: use subprocess returncode

Change-Id: Ia1953f389584a372ce2e8255fe19aa7553b54bbf
parent 0d9f4e8a
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,8 @@ this_dir = os.path.dirname(os.path.realpath(__file__))
def execute_cmd(cmd, with_shell=False):
p = subprocess.Popen(cmd, shell=with_shell)
_, perr = p.communicate()
if perr:
return 1
return 0
_, _ = p.communicate()
return p.returncode
def build_daemon(parsed_args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment