Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Prove the about page fallback on any machine
The fallback through cgit ran only where cgit's own Lua lacked lpeg,
and every machine the suite runs on has it, so the test never ran.
With every Lua search path pointed at an empty directory it runs
anywhere. It now also checks that the readme's markup is escaped, as
its title said, and compares the whole log line.
Diffstat (limited to 'tests/extensions/test-about-render.lua')
| -rw-r--r-- | tests/extensions/test-about-render.lua | 3 |
1 file changed, 2 insertions, 1 deletion
diff --git a/tests/extensions/test-about-render.lua b/tests/extensions/test-about-render.lua index e6813ef..7d714c3 100644 --- a/tests/extensions/test-about-render.lua +++ b/tests/extensions/test-about-render.lua @@ -19,7 +19,8 @@ h.load(script) -- A missing lpeg is written to the error log as the script loads. if mode == "nolpeg" then - h.contains("a missing lpeg is named in the error log", h.error_log(), "Unable to load lpeg") + h.equals("a missing lpeg is named in the error log", h.error_log(), + "[cgit] Unable to load lpeg, so markdown and man pages show as plain text\n") else h.equals("with lpeg the error log stays empty", h.error_log(), "") end |
