[elbe-devel] [PATCH] elbepack commands test: Fix Python's version for testing

Olivier Dion dion at linutronix.de
Mon Jun 15 14:14:00 CEST 2020


Tests were created to be used with Python3.  On some system, Python is
symlink to Python2 which will result in some tests failing.

Setting Python3 to enforce the use of the expected version.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/commands/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/test.py b/elbepack/commands/test.py
index c306b8f6..dca3be72 100644
--- a/elbepack/commands/test.py
+++ b/elbepack/commands/test.py
@@ -12,5 +12,5 @@ from elbepack.shellhelper import system
 def run_command(argv):
     this_dir = os.path.dirname(os.path.realpath(__file__))
     top_dir  = os.path.join(this_dir, "..", "..")
-    system("python -m unittest discover --start-directory '%s' %s" %
+    system("python3 -m unittest discover --start-directory '%s' %s" %
            (top_dir, " ".join(argv)), allow_fail=True)
-- 
2.27.0




More information about the elbe-devel mailing list