Use Python 3 for tests
authorSimon McVittie <smcv@debian.org>
Wed, 17 Jan 2018 14:07:32 +0000 (14:07 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 19 Feb 2018 09:01:47 +0000 (09:01 +0000)
Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Topic debian
Gbp-Pq: Name Use-Python-3-for-tests.patch

tests/bootloader-entries-crosscheck.py
tests/test-basic-user-only.sh
tests/test-concurrency.py

index 5faa5487c346cca3e8da6d27aeb9f1b7c55114fc..41f6956e00273a09d898eea31ce48270df83ac82 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # Copyright (C) 2015 Red Hat
 #
index bea7b77f4d314e758020ff0bce2486d00fbe711e..5f27014ecf0636d4410b22188305ac8c0bab2736 100755 (executable)
@@ -28,7 +28,7 @@ extra_basic_tests=5
 . $(dirname $0)/basic-test.sh
 
 $CMD_PREFIX ostree --version > version.yaml
-python -c 'import yaml; yaml.safe_load(open("version.yaml"))'
+python3 -c 'import yaml; yaml.safe_load(open("version.yaml"))'
 echo "ok yaml version"
 
 # Reset things so we don't inherit a lot of state from earlier tests
index 3a0ce10336f373845761d09c4710f7bacc571d4a..3ec3681c9e93b53d5ca89f99af4f738ab9f4bd62 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Copyright (C) 2017 Colin Walters <walters@verbum.org>
 #