testers.lycheeLinkCheck: Clarify test data

This commit is contained in:
Robert Hensing 2024-05-27 00:59:02 +02:00
parent 984b45c609
commit 5acbed79ee

View File

@ -3,7 +3,7 @@ let
sitePkg = runCommand "site" { } ''
dist=$out/dist
mkdir -p $dist
echo "<html><body><a href=\"https://example.com/foo.html#butwhere\">foo</a></body></html>" > $dist/index.html
echo "<html><body><a href=\"https://example.com/foo.html#foos-missing-anchor\">foo</a></body></html>" > $dist/index.html
echo "<html><body><a href=\".\">index</a></body></html>" > $dist/foo.html
'';
@ -16,6 +16,6 @@ let
in
runCommand "link-check-fail" { inherit failure; } ''
grep -F butwhere $failure/testBuildFailure.log >/dev/null
grep -F foos-missing-anchor $failure/testBuildFailure.log >/dev/null
touch $out
''