Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Check that cgit reads what the age hook writes
The hook exists to feed the idle column, but nothing had cgit read an
age file, so a hook writing a date cgit cannot parse, or one at a path
cgit no longer reads, passed.
Diffstat (limited to 'tests/t0507-hooks.sh')
| -rwxr-xr-x | tests/t0507-hooks.sh | 6 |
1 file changed, 6 insertions, 0 deletions
diff --git a/tests/t0507-hooks.sh b/tests/t0507-hooks.sh index d387025..f578487 100755 --- a/tests/t0507-hooks.sh +++ b/tests/t0507-hooks.sh @@ -176,6 +176,12 @@ do test_cmp expect-entries entries ' + test_expect_success "cgit shows the date the age hook wrote as the idle time under $shell" ' + cgitrc_repo agerc plain "repo.path=$PWD/plain.git" && + cgit_ok agerc "" >index && + test_grep "<td class=.col-idle.><time [^>]*data-ut=.1612325106." index + ' + test_expect_success SANITY "the age hook shows a pusher no error under $shell" ' cp kept plain.git/info/web/last-modified && test_when_finished "chmod 755 plain.git/info/web" && |
