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
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@
%bcond_with asan %bcond_with asan
%bcond_with systemd %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 # Generic enable switch for systemd
%if %{with systemd} %if %{with systemd}
%define _systemd 1 %define _systemd 1