Exclude test-runner.py from the rpmbuild shebang check

Exclude test-runner.py from the rpmbuild shebang check to allow it to
run under Python 2 and 3.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8331
This commit is contained in:
Tony Hutter 2019-01-23 11:31:24 -08:00 committed by Brian Behlendorf
parent caacc6e4c4
commit 466f55334a

View File

@ -53,6 +53,10 @@
%bcond_with asan
%bcond_with systemd
# Exclude test-runner.py from the rpmbuild shebang check to allow it to run
# under Python 2 and 3.
%global __brp_mangle_shebangs_exclude_from test-runner.py
# Generic enable switch for systemd
%if %{with systemd}
%define _systemd 1