Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2020 12:47:16 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363361 - head/tests/sys/opencrypto
Message-ID:  <202007201247.06KClGgB052816@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Mon Jul 20 12:47:15 2020
New Revision: 363361
URL: https://svnweb.freebsd.org/changeset/base/363361

Log:
  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

Modified:
  head/tests/sys/opencrypto/Makefile
  head/tests/sys/opencrypto/cryptodev.py
  head/tests/sys/opencrypto/cryptotest.py
  head/tests/sys/opencrypto/runtests.sh

Modified: head/tests/sys/opencrypto/Makefile
==============================================================================
--- head/tests/sys/opencrypto/Makefile	Mon Jul 20 01:55:19 2020	(r363360)
+++ head/tests/sys/opencrypto/Makefile	Mon Jul 20 12:47:15 2020	(r363361)
@@ -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

Modified: head/tests/sys/opencrypto/cryptodev.py
==============================================================================
--- head/tests/sys/opencrypto/cryptodev.py	Mon Jul 20 01:55:19 2020	(r363360)
+++ head/tests/sys/opencrypto/cryptodev.py	Mon Jul 20 12:47:15 2020	(r363361)
@@ -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

Modified: head/tests/sys/opencrypto/cryptotest.py
==============================================================================
--- head/tests/sys/opencrypto/cryptotest.py	Mon Jul 20 01:55:19 2020	(r363360)
+++ head/tests/sys/opencrypto/cryptotest.py	Mon Jul 20 12:47:15 2020	(r363361)
@@ -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

Modified: head/tests/sys/opencrypto/runtests.sh
==============================================================================
--- head/tests/sys/opencrypto/runtests.sh	Mon Jul 20 01:55:19 2020	(r363360)
+++ head/tests/sys/opencrypto/runtests.sh	Mon Jul 20 12:47:15 2020	(r363361)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007201247.06KClGgB052816>