Mercurial > kallithea
changeset 6629:3af2dea756db
test: add warning about not mounting /tmp noexec
author | domruf <dominikruf@gmail.com> |
---|---|
date | Mon, 01 May 2017 17:23:31 +0200 |
parents | fa5788feed0f |
children | d4e1692e25ab |
files | docs/contributing.rst kallithea/tests/other/manual_test_vcs_operations.py |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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).
--- 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)