Allow help.t test to find manpages without installing them.

This commit is contained in:
Shaun Ruffell 2019-11-17 23:42:02 -06:00 committed by lauft
parent 8109c155af
commit f0bda68b02
43 changed files with 48 additions and 42 deletions

View file

@ -72,6 +72,12 @@ class Timew(object):
# As well as TIMEWARRIORDB
self.env["TIMEWARRIORDB"] = self.datadir
# As well as MANPATH, so that the help tests can find the
# uninstalled man pages
parts = self.timew.split(os.path.sep)[0:-2]
parts.append("doc")
self.env["MANPATH"] = os.path.sep.join(parts)
def config(self, var, value):
"""Run setup `var` as `value` in timew config"""
# Add -- to avoid misinterpretation of - in things like UUIDs