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

Torben Hohn torben.hohn at linutronix.de
Mon Jun 15 14:19:49 CEST 2020


On Mon, Jun 15, 2020 at 08:14:00AM -0400, Olivier Dion wrote:
> 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>

Reviewed-by: Torben Hohn <torben.hohn 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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list