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
This commit is contained in:
asomers 2020-07-20 12:47:15 +00:00
parent 0f5603fc77
commit 561e7291e0
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"