# HG changeset patch # User domruf # Date 1493652211 -7200 # Node ID 3af2dea756dbc19837982f94d0d2781f85c1da7b # Parent fa5788feed0f37a55724d3adb8df42d27b866ae7 test: add warning about not mounting /tmp noexec diff -r fa5788feed0f -r 3af2dea756db docs/contributing.rst --- a/docs/contributing.rst Thu Apr 27 20:46:16 2017 +0200 +++ b/docs/contributing.rst Mon May 01 17:23:31 2017 +0200 @@ -57,6 +57,11 @@ Note that testing on Python 2.6 also requires ``unittest2``. +Note that on unix systems, the temporary directory (``/tmp`` or where +``$TMPDIR`` points) must allow executable files; Git hooks must be executable, +and the test suite creates repositories in the temporary directory. Linux +systems with /tmp mounted noexec will thus fail. + You can also use ``tox`` to run the tests with all supported Python versions (currently Python 2.6--2.7). diff -r fa5788feed0f -r 3af2dea756db kallithea/tests/other/manual_test_vcs_operations.py --- a/kallithea/tests/other/manual_test_vcs_operations.py Thu Apr 27 20:46:16 2017 +0200 +++ b/kallithea/tests/other/manual_test_vcs_operations.py Mon May 01 17:23:31 2017 +0200 @@ -435,6 +435,9 @@ assert msg in stderr def test_push_on_locked_repo_by_other_user_git(self): + # Note: Git hooks must be executable on unix. This test will thus fail + # for example on Linux if /tmp is mounted noexec. + #clone some temp DEST = _get_tmp_dir() clone_url = _construct_url(GIT_REPO)