tests: Use python3 for most of it, python2 for cv2

This commit is contained in:
Alexey Rogachevskiy
2020-02-12 22:18:03 +03:00
parent cb26f0933e
commit 6d4dd6956f
4 changed files with 9 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ source /home/pi/catkin_ws/devel/setup.bash
cd /home/pi/catkin_ws/src/clover/builder/test/
./tests.sh
./tests.py
./tests_py3.py
./tests_py2.py
[[ $(./tests_clever.py) == "Warning: clever package is renamed to clover" ]] # test backwards compatibility
echo "Move /etc/ld.so.preload back to its original position"

View File

@@ -29,4 +29,4 @@ import rpi_ws281x
import pigpio
from espeak import espeak
print cv2.getBuildInformation()
print(cv2.getBuildInformation())

7
builder/test/tests_py2.py Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env python
# Make sure our Python 2 software is installed
import cv2
print(cv2.getBuildInformation())

View File

@@ -1,7 +0,0 @@
#!/usr/bin/env python3
# Make sure our Python 3 software is installed
import cv2
print(cv2.getBuildInformation())