From: Zhang Qiang Date: Mon, 4 Jun 2012 06:39:40 +0000 (+0800) Subject: use os.system to fix command full path issue X-Git-Tag: 0.6.4~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeb419cb1bd27ece6795246bf90c09a55ec3987c;p=tools%2Fgbs.git use os.system to fix command full path issue --- diff --git a/gitbuildsys/utils.py b/gitbuildsys/utils.py index 21d22d4..12ac735 100644 --- a/gitbuildsys/utils.py +++ b/gitbuildsys/utils.py @@ -339,8 +339,8 @@ def setup_qemu_emulator(): os.write(tmpfd, "echo '%s' > /proc/sys/fs/binfmt_misc/register" % qemu_arm_string) os.close(tmpfd) # on this way can work to use sudo register qemu emulator - ret = subprocess.call('sudo sh %s' % tmppth) - if ret: + ret = os.system('sudo sh %s' % tmppth) + if ret != 0: raise errors.QemuError('failed to set up qemu arm environment') except IOError: raise errors.QemuError('failed to set up qemu arm environment')