diff options
| author | Mathieu Othacehe <othacehe@gnu.org> | 2025-10-21 14:20:58 +0200 |
|---|---|---|
| committer | Mathieu Othacehe <othacehe@gnu.org> | 2025-10-21 14:20:58 +0200 |
| commit | 8b044314334b7d5932548b0f73422d5a943ebcfd (patch) | |
| tree | e1dc80d02f64463e5d605d83973f74a324a6713a /gnu/tests/version-control.scm | |
| parent | c7b40a2181ce5e25682515f01af25df3acbb0184 (diff) | |
tests: Fix the git-http test.wip-fix-system-tests
The test fails because the fcgiwrap daemon that runs as "fcgiwrap" user cannot
access the /srv/git directory that is root-owned.
* gnu/tests/version-control.scm (run-git-http-test): Change the ownership
of /srv/git so that fcgiwrap can access it.
Change-Id: I01fa98e3311ac0dba88a4af21cee3ae0da986582
Diffstat (limited to 'gnu/tests/version-control.scm')
| -rw-r--r-- | gnu/tests/version-control.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/tests/version-control.scm b/gnu/tests/version-control.scm index 8b02d3d9ba1..0f35e55de18 100644 --- a/gnu/tests/version-control.scm +++ b/gnu/tests/version-control.scm | |||
| @@ -286,6 +286,14 @@ HTTP-PORT." | |||
| 286 | (test-equal "clone" | 286 | (test-equal "clone" |
| 287 | '#$README-contents | 287 | '#$README-contents |
| 288 | (begin | 288 | (begin |
| 289 | ;; Make sure that the fcgiwrap user can access the /srv/git | ||
| 290 | ;; directory and its child. | ||
| 291 | (marionette-eval | ||
| 292 | '(let ((user (getpw (pk "fcgiwrap")))) | ||
| 293 | (for-each (lambda (dir) | ||
| 294 | (chown dir (passwd:uid user) (passwd:gid user))) | ||
| 295 | '("/srv/git" "/srv/git/test"))) | ||
| 296 | marionette) | ||
| 289 | (invoke #$(file-append git "/bin/git") "clone" "-v" | 297 | (invoke #$(file-append git "/bin/git") "clone" "-v" |
| 290 | "http://localhost:8080/git/test" "/tmp/clone") | 298 | "http://localhost:8080/git/test" "/tmp/clone") |
| 291 | (call-with-input-file "/tmp/clone/README" | 299 | (call-with-input-file "/tmp/clone/README" |
