mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
testers.lycheeLinkCheck: Clarify test data
This commit is contained in:
parent
984b45c609
commit
5acbed79ee
@ -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
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user