diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2018-09-24 14:12:45 -0400 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-09-27 03:12:58 +0000 |
commit | 5b91555a583da1ad7918c3fb16a2d92be1a19e9c (patch) | |
tree | 373e02dfdf72fcaa80e79ce4a203ee0294d23118 /tests/bugs | |
parent | 4756e27bbcd8ccc11180843ad23b833e8a5cf22c (diff) |
python3: assume python3 unless building _packages_ on sys without py3
The jenkins release-new job runs on a CentOS 7 box, which does not
have python3. As a result it runs (autogen.sh and) configure before
producing the dist tar file, converting all the python3 shebangs to
python2 shebangs in the dist tar file.
Then when that tar file is "carried" to, e.g. Fedora koji build
system to build packages, the shebangs are incorrect, despite having
originally been correct in the git repo.
Change-Id: I5154baba3f6d29d3c4823bafc2b57abecbf90e5b
updates: #411
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'tests/bugs')
-rwxr-xr-x | tests/bugs/distribute/overlap.py | 1 | ||||
-rwxr-xr-x | tests/bugs/nfs/socket-as-fifo.py | 1 | ||||
-rw-r--r-- | tests/bugs/nfs/socket-as-fifo.t | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/tests/bugs/distribute/overlap.py b/tests/bugs/distribute/overlap.py index 5416991b7a3..0941d377624 100755 --- a/tests/bugs/distribute/overlap.py +++ b/tests/bugs/distribute/overlap.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 from __future__ import print_function import sys diff --git a/tests/bugs/nfs/socket-as-fifo.py b/tests/bugs/nfs/socket-as-fifo.py index 2c8ef26a804..eb507e1d30b 100755 --- a/tests/bugs/nfs/socket-as-fifo.py +++ b/tests/bugs/nfs/socket-as-fifo.py @@ -1,4 +1,3 @@ -#!/usr/bin/python3 # # Create a unix domain socket and test if it is a socket (and not a fifo/pipe). # diff --git a/tests/bugs/nfs/socket-as-fifo.t b/tests/bugs/nfs/socket-as-fifo.t index ca5f2af6f2b..db64bbb303b 100644 --- a/tests/bugs/nfs/socket-as-fifo.t +++ b/tests/bugs/nfs/socket-as-fifo.t @@ -16,7 +16,7 @@ EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available; TEST mount_nfs $H0:/$V0 $N0 nolock # this is the actual test -TEST $(dirname $0)/socket-as-fifo.py $N0/not-a-fifo.socket +TEST $PYTHON $(dirname $0)/socket-as-fifo.py $N0/not-a-fifo.socket TEST umount_nfs $N0 |