libgit2/tests/repo
Patrick Steinhardt ffd264d9eb tests: repo: fix repo discovery tests on overlayfs
Debian and Ubuntu often use schroot to build their DEB packages in a
controlled environment. Depending on how schroot is configured, our
tests regarding repository discovery break due to not being able to find
the repositories anymore. It turns out that these errors occur when the
schroot is configured to use an overlayfs on the directory structures.

The reason for this failure is that we usually refrain from discovering
repositories across devices. But unfortunately, overlayfs does not have
consistent device identifiers for all its files but will instead use the
device number of the filesystem the file stems from. So whenever we
cross boundaries between the upper and lower layer of the overlay, we
will fail to properly detect the repository and bail out.

This commit fixes the issue by enabling cross-device discovery in our
tests. While it would be preferable to have this turned off, it probably
won't do much harm anyway as we set up our tests in a temporary location
outside of the parent repository.
2017-05-03 15:04:46 +02:00
..
config.c Better search path sandboxing 2014-05-15 10:56:28 -07:00
discover.c tests: repo: fix repo discovery tests on overlayfs 2017-05-03 15:04:46 +02:00
env.c cl_git_exec -> cl_git_expect 2017-02-17 13:01:49 +00:00
getters.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
hashfile.c Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
head.c Add tests for the annotated versions of ref-modifying functions 2015-03-16 16:57:30 +01:00
headtree.c repository: remove log message override for switching the active branch 2015-03-03 14:40:50 +01:00
init.c git_repository_init: include dotfiles when copying templates 2015-12-26 22:41:00 -06:00
message.c Fix some Windows warnings 2014-02-07 15:43:37 -08:00
new.c repository_new: test its bareness 2015-03-10 16:49:24 -04:00
open.c tests: repo: fix repo discovery tests on overlayfs 2017-05-03 15:04:46 +02:00
pathspec.c Fix compile error on Visual Studio 2014-05-27 23:36:07 +09:00
repo_helpers.c Remove the signature from ref-modifying functions 2015-03-03 14:40:50 +01:00
repo_helpers.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
reservedname.c repo::reservedname: test a submodule update 2015-09-18 12:17:49 -04:00
setters.c config: borrow refcounted references 2015-03-03 18:35:12 +01:00
shallow.c Improve error propagation in shallow call 2014-02-18 14:05:30 -08:00
state.c repository: distinguish sequencer cherry-pick and revert 2015-11-20 13:19:23 -05:00