Date: Sat, 20 Apr 2019 07:32:30 +0000 (UTC) From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r346431 - head/tests/sys/opencrypto Message-ID: <201904200732.x3K7WUuM080887@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lwhsu Date: Sat Apr 20 07:32:29 2019 New Revision: 346431 URL: https://svnweb.freebsd.org/changeset/base/346431 Log: 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 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 Sat Apr 20 05:31:56 2019 (r346430) +++ head/tests/sys/opencrypto/Makefile Sat Apr 20 07:32:29 2019 (r346431) @@ -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 Modified: head/tests/sys/opencrypto/cryptodev.py ============================================================================== --- head/tests/sys/opencrypto/cryptodev.py Sat Apr 20 05:31:56 2019 (r346430) +++ head/tests/sys/opencrypto/cryptodev.py Sat Apr 20 07:32:29 2019 (r346431) @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/local/bin/python2 # # Copyright (c) 2014 The FreeBSD Foundation # Copyright 2014 John-Mark Gurney Modified: head/tests/sys/opencrypto/cryptotest.py ============================================================================== --- head/tests/sys/opencrypto/cryptotest.py Sat Apr 20 05:31:56 2019 (r346430) +++ head/tests/sys/opencrypto/cryptotest.py Sat Apr 20 07:32:29 2019 (r346431) @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/local/bin/python2 # # Copyright (c) 2014 The FreeBSD Foundation # All rights reserved. Modified: head/tests/sys/opencrypto/runtests.sh ============================================================================== --- head/tests/sys/opencrypto/runtests.sh Sat Apr 20 05:31:56 2019 (r346430) +++ head/tests/sys/opencrypto/runtests.sh Sat Apr 20 07:32:29 2019 (r346431) @@ -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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904200732.x3K7WUuM080887>