mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
CmdHelp: Return error if man
command fails
I feel this is expected behavior, but also eliminates the following compile time warning on one of my systems: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
parent
9ae84426d9
commit
b5df2a2aa5
2 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ class TestHelp(TestCase):
|
|||
|
||||
def test_help_with_unknown_argument_should_show_error_message(self):
|
||||
"""timew help with unknown argument should show error message"""
|
||||
code, out, err = self.t("help bogus")
|
||||
code, out, err = self.t.runError("help bogus")
|
||||
self.assertRegex(err, r"No manual entry for timew-bogus")
|
||||
|
||||
def test_command_with_help_long_option_should_show_help_page(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue