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
This commit is contained in:
Li-Wen Hsu 2019-04-20 07:32:29 +00:00
parent 3d384d51aa
commit 369ee0905e
4 changed files with 4 additions and 4 deletions

View file

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/local/bin/python2
#
# Copyright (c) 2014 The FreeBSD Foundation
# Copyright 2014 John-Mark Gurney

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/local/bin/python2
#
# Copyright (c) 2014 The FreeBSD Foundation
# All rights reserved.

View file

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