We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ad4c5 commit f8433c8Copy full SHA for f8433c8
tools/src/test/python/test_commands.py
@@ -53,6 +53,14 @@ def test_run_retcodes(self):
53
'/bin/true opengrok-master': 0,
54
'/bin/false opengrok-master': 1}, cmds.retcodes)
55
56
+ @unittest.skipUnless(os.name.startswith("posix"), "requires Unix")
57
+ def test_terminate_after_non_zero_code(self):
58
+ cmds = Commands(CommandsBase("opengrok-master",
59
+ [{"command": ["/bin/false"]},
60
+ {"command": ["/bin/true"]}]))
61
+ cmds.run()
62
+ self.assertEqual({'/bin/false opengrok-master': 1}, cmds.retcodes)
63
+
64
@unittest.skipUnless(os.name.startswith("posix"), "requires Unix")
65
def test_project_subst(self):
66
cmds = Commands(CommandsBase("test-subst",
0 commit comments