[elbe-devel] [PATCH v3 07/15] Change os.sytem to shellhelper::system for "elbeproject.py"

dion at linutronix.de dion at linutronix.de
Wed Jun 26 10:40:11 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/elbeproject.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 073bfb15..d95dd4b1 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -14,7 +14,7 @@ import datetime
 import io
 
 from elbepack.asciidoclog import ASCIIDocLog, StdoutLog
-from elbepack.shellhelper import CommandError
+from elbepack.shellhelper import CommandError, system
 
 from elbepack.elbexml import (ElbeXML, NoInitvmNode,
                               ValidationError, ValidationMode)
@@ -63,7 +63,7 @@ class UnsupportedSDKException(Exception):
 
 
 def test_gen_sdk_scripts():
-    os.system("mkdir -p /tmp/test/sdk")
+    system("mkdir -p /tmp/test/sdk")
     gen_sdk_scripts('armhf-linux-gnueabihf',
                     'ARM',
                     'testproject',
@@ -659,7 +659,7 @@ class ElbeProject (object):
 
         self.targetfs.pack_images(self.builddir)
 
-        os.system('cat "%s"' % self.validationpath)
+        system('cat "%s"' % self.validationpath)
 
     def pdebuild_init(self):
         # Remove pdebuilder directory, containing last build results
-- 
2.11.0




More information about the elbe-devel mailing list