aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2019-04-20 07:32:29 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2019-04-20 07:32:29 +0000
commit369ee0905e7ae7da8d5d1574ac10bf14aede2bce (patch)
tree67d93819de4d8e14f9bcd2cbb572df736c636cfc
parent3d384d51aa916422d179850fafd5b52be1c3deaf (diff)
downloadsrc-369ee0905e7ae7da8d5d1574ac10bf14aede2bce.tar.gz
src-369ee0905e7ae7da8d5d1574ac10bf14aede2bce.zip
Specify using Python2, these .py files have not been converted to use Python3
yet, but the default Python version in ports has been switched to 3. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=346431
-rw-r--r--tests/sys/opencrypto/Makefile2
-rw-r--r--tests/sys/opencrypto/cryptodev.py2
-rw-r--r--tests/sys/opencrypto/cryptotest.py2
-rw-r--r--tests/sys/opencrypto/runtests.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/sys/opencrypto/Makefile b/tests/sys/opencrypto/Makefile
index db31630311a2..6645935ae109 100644
--- a/tests/sys/opencrypto/Makefile
+++ b/tests/sys/opencrypto/Makefile
@@ -14,7 +14,7 @@ ATF_TESTS_C+= blake2_test poly1305_test
PLAIN_TESTS_SH= runtests
-TEST_METADATA.runtests+= required_programs="python"
+TEST_METADATA.runtests+= required_programs="python2"
TEST_METADATA.runtests+= required_user="root"
PYMODULES= cryptodev.py cryptodevh.py cryptotest.py dpkt.py
diff --git a/tests/sys/opencrypto/cryptodev.py b/tests/sys/opencrypto/cryptodev.py
index 3e0ae0120b06..07865a178b5f 100644
--- a/tests/sys/opencrypto/cryptodev.py
+++ b/tests/sys/opencrypto/cryptodev.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/local/bin/python2
#
# Copyright (c) 2014 The FreeBSD Foundation
# Copyright 2014 John-Mark Gurney
diff --git a/tests/sys/opencrypto/cryptotest.py b/tests/sys/opencrypto/cryptotest.py
index cdfdaa28850d..d87c55394048 100644
--- a/tests/sys/opencrypto/cryptotest.py
+++ b/tests/sys/opencrypto/cryptotest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/local/bin/python2
#
# Copyright (c) 2014 The FreeBSD Foundation
# All rights reserved.
diff --git a/tests/sys/opencrypto/runtests.sh b/tests/sys/opencrypto/runtests.sh
index 0ce128bbdef2..5ff7d693ad5d 100644
--- a/tests/sys/opencrypto/runtests.sh
+++ b/tests/sys/opencrypto/runtests.sh
@@ -61,6 +61,6 @@ done
oldcdas=$(sysctl -e kern.cryptodevallowsoft)
sysctl kern.cryptodevallowsoft=1
-python $(dirname $0)/cryptotest.py
+python2 $(dirname $0)/cryptotest.py
sysctl "$oldcdas"