diff options
author | Alan Somers <asomers@FreeBSD.org> | 2020-07-20 12:47:15 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2020-07-20 12:47:15 +0000 |
commit | 2a7a4b196d1d87189e260e85e7844162d3237b6f (patch) | |
tree | 2830f7271fc87641e7dd5af421cf5585085b7b65 /tests | |
parent | 82b17c8e910b4fcced671146d514f6722fa4f248 (diff) | |
download | src-test-2a7a4b196d1d87189e260e85e7844162d3237b6f.tar.gz src-test-2a7a4b196d1d87189e260e85e7844162d3237b6f.zip |
tests/sys/opencrypto: use python3
python2 will be EOL soon
Reviewed by: lwhsu, jmg
MFC after: 2 weeks
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D25682
Notes
Notes:
svn path=/head/; revision=363361
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/opencrypto/Makefile | 2 | ||||
-rw-r--r-- | tests/sys/opencrypto/cryptodev.py | 4 | ||||
-rw-r--r-- | tests/sys/opencrypto/cryptotest.py | 4 | ||||
-rw-r--r-- | tests/sys/opencrypto/runtests.sh | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/sys/opencrypto/Makefile b/tests/sys/opencrypto/Makefile index fd502fd8bae35..f9685b166afc7 100644 --- a/tests/sys/opencrypto/Makefile +++ b/tests/sys/opencrypto/Makefile @@ -14,7 +14,7 @@ ATF_TESTS_C+= blake2_test poly1305_test TAP_TESTS_SH+= runtests -TEST_METADATA.runtests+= required_programs="python2" +TEST_METADATA.runtests+= required_programs="python3" TEST_METADATA.runtests+= required_user="root" PYMODULES= cryptodev.py cryptodevh.py cryptotest.py diff --git a/tests/sys/opencrypto/cryptodev.py b/tests/sys/opencrypto/cryptodev.py index 4a96eb905e067..0fcca6c002441 100644 --- a/tests/sys/opencrypto/cryptodev.py +++ b/tests/sys/opencrypto/cryptodev.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python2 +#!/usr/local/bin/python3 # # Copyright (c) 2014 The FreeBSD Foundation # Copyright 2014 John-Mark Gurney @@ -31,7 +31,7 @@ # $FreeBSD$ # -from __future__ import print_function + import array import binascii from fcntl import ioctl diff --git a/tests/sys/opencrypto/cryptotest.py b/tests/sys/opencrypto/cryptotest.py index 72543683241bd..8868149bdb6fc 100644 --- a/tests/sys/opencrypto/cryptotest.py +++ b/tests/sys/opencrypto/cryptotest.py @@ -1,4 +1,4 @@ -#!/usr/local/bin/python2 +#!/usr/local/bin/python3 # # Copyright (c) 2014 The FreeBSD Foundation # All rights reserved. @@ -30,7 +30,7 @@ # $FreeBSD$ # -from __future__ import print_function + import binascii import errno diff --git a/tests/sys/opencrypto/runtests.sh b/tests/sys/opencrypto/runtests.sh index 680173610a00c..1bf6149f28576 100644 --- a/tests/sys/opencrypto/runtests.sh +++ b/tests/sys/opencrypto/runtests.sh @@ -30,7 +30,7 @@ # $FreeBSD$ # -: ${PYTHON=python2} +: ${PYTHON=python3} if [ ! -d /usr/local/share/nist-kat ]; then echo "1..0 # SKIP: nist-kat package not installed for test vectors" |