From d4b7b8bae7357f52d62c655b099b7e587858ffed Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Sat, 24 Oct 2020 06:57:20 +1000 Subject: [PATCH] Fix example to use correct shebang (#72129) (#72146) * Fix example to use correct shebang * Fix other example modules as well * Ignore shebang test (cherry picked from commit 1ae3683d0c49c84a0df60d3aa176065c783c078b) --- examples/scripts/my_test.py | 2 +- examples/scripts/my_test_facts.py | 2 +- examples/scripts/my_test_info.py | 2 +- test/sanity/ignore.txt | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/scripts/my_test.py b/examples/scripts/my_test.py index 3363fc1aa53..16aac8934dc 100644 --- a/examples/scripts/my_test.py +++ b/examples/scripts/my_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Copyright: (c) 2018, Terry Jones # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/examples/scripts/my_test_facts.py b/examples/scripts/my_test_facts.py index 8484e3c3743..555f878efb4 100644 --- a/examples/scripts/my_test_facts.py +++ b/examples/scripts/my_test_facts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Copyright: (c) 2020, Your Name # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/examples/scripts/my_test_info.py b/examples/scripts/my_test_info.py index 7db3edda281..64da3c7b8a8 100644 --- a/examples/scripts/my_test_info.py +++ b/examples/scripts/my_test_info.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python # Copyright: (c) 2020, Your Name # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index 90f5e1fe54b..b3ff2275ca7 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -8,6 +8,9 @@ docs/docsite/rst/conf.py future-import-boilerplate docs/docsite/rst/conf.py metaclass-boilerplate docs/docsite/rst/dev_guide/testing/sanity/no-smart-quotes.rst no-smart-quotes examples/play.yml shebang +examples/scripts/my_test.py shebang # example module but not in a normal module location +examples/scripts/my_test_facts.py shebang # example module but not in a normal module location +examples/scripts/my_test_info.py shebang # example module but not in a normal module location examples/scripts/ConfigureRemotingForAnsible.ps1 pslint:PSCustomUseLiteralPath examples/scripts/upgrade_to_ps3.ps1 pslint:PSCustomUseLiteralPath examples/scripts/upgrade_to_ps3.ps1 pslint:PSUseApprovedVerbs