aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2020-07-20 12:47:15 +0000
committerAlan Somers <asomers@FreeBSD.org>2020-07-20 12:47:15 +0000
commit2a7a4b196d1d87189e260e85e7844162d3237b6f (patch)
tree2830f7271fc87641e7dd5af421cf5585085b7b65
parent82b17c8e910b4fcced671146d514f6722fa4f248 (diff)
downloadsrc-2a7a4b196d1d87189e260e85e7844162d3237b6f.tar.gz
src-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
-rw-r--r--tests/sys/opencrypto/Makefile2
-rw-r--r--tests/sys/opencrypto/cryptodev.py4
-rw-r--r--tests/sys/opencrypto/cryptotest.py4
-rw-r--r--tests/sys/opencrypto/runtests.sh2
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/sys/opencrypto/Makefile b/tests/sys/opencrypto/Makefile
index fd502fd8bae3..f9685b166afc 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 4a96eb905e06..0fcca6c00244 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 72543683241b..8868149bdb6f 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 680173610a00..1bf6149f2857 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"