summaryrefslogtreecommitdiff
path: root/devel/py-cookiecutter/files/patch-tests_test__hooks.py
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2020-12-28 10:14:37 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2020-12-28 10:14:37 +0000
commit210e026bb2722e70c40b5066b43aae351f3e25b7 (patch)
tree3fbe1ce00c8bc9b65119e67b061a7318dcffba10 /devel/py-cookiecutter/files/patch-tests_test__hooks.py
parentx11-fm/mucommander: Update to 0.9.5-1 (diff)
Fix `make test` to achieve 100% pass rate by converting entirely
unnecessary references to '/bin/bash' to use '/bin/sh' instead. Update dependency versions to match 'setup.cfg' _except_ for py-requests, where the ports currently has only 2.22.0 available, but upstream is requiring at least 2.23.0. (Waiting on PR 250941) [1] PR: 252180 Submitted by: Charlie Li
Notes
Notes: svn path=/head/; revision=559453
Diffstat (limited to 'devel/py-cookiecutter/files/patch-tests_test__hooks.py')
-rw-r--r--devel/py-cookiecutter/files/patch-tests_test__hooks.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/py-cookiecutter/files/patch-tests_test__hooks.py b/devel/py-cookiecutter/files/patch-tests_test__hooks.py
new file mode 100644
index 000000000000..bf62c10a3f07
--- /dev/null
+++ b/devel/py-cookiecutter/files/patch-tests_test__hooks.py
@@ -0,0 +1,20 @@
+--- tests/test_hooks.py.orig 2020-12-28 09:57:55 UTC
++++ tests/test_hooks.py
+@@ -42,7 +42,7 @@ def make_test_repo(name):
+ post = 'post_gen_project.sh'
+ filename = os.path.join(hook_dir, post)
+ with open(filename, 'w') as f:
+- f.write("#!/bin/bash\n")
++ f.write("#!/bin/sh\n")
+ f.write("\n")
+ f.write("echo 'post generation hook';\n")
+ f.write("touch 'shell_post.txt'\n")
+@@ -143,7 +143,7 @@ class TestExternalHooks(object):
+ f.write("echo. >{{cookiecutter.file}}\n")
+ else:
+ with open(hook_path, 'w') as fh:
+- fh.write("#!/bin/bash\n")
++ fh.write("#!/bin/sh\n")
+ fh.write("\n")
+ fh.write("echo 'post generation hook';\n")
+ fh.write("touch 'shell_post.txt'\n")