[elbe-devel] [PATCH 09/13] Change os.sytem to call_check for "elbeproject.py"
dion at linutronix.de
dion at linutronix.de
Mon Jun 24 12:48:49 CEST 2019
From: Olivier Dion <dion at linutronix.de>
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/elbeproject.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 073bfb15..26add9e0 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -13,6 +13,8 @@ import os
import datetime
import io
+from subprocess import check_call
+
from elbepack.asciidoclog import ASCIIDocLog, StdoutLog
from elbepack.shellhelper import CommandError
@@ -63,7 +65,7 @@ class UnsupportedSDKException(Exception):
def test_gen_sdk_scripts():
- os.system("mkdir -p /tmp/test/sdk")
+ check_call("mkdir -p /tmp/test/sdk", shell=True)
gen_sdk_scripts('armhf-linux-gnueabihf',
'ARM',
'testproject',
@@ -659,7 +661,7 @@ class ElbeProject (object):
self.targetfs.pack_images(self.builddir)
- os.system('cat "%s"' % self.validationpath)
+ check_call('cat "%s"' % self.validationpath, shell=True)
def pdebuild_init(self):
# Remove pdebuilder directory, containing last build results
--
2.11.0
More information about the elbe-devel
mailing list