Fix command-name substitution and rules move with duplicate at destination
ci / test (push) Waiting to run
ci / test (push) Waiting to run
This commit is contained in:
1 parent
6477fc66d2
commit
cb442e7d6f
4 files changed
+17
-4
No files matched your search
+3
-2
@@ -1,5 +1,5 @@
|
||||
"""The plan: a dependency graph recorded before any work is handed out, and the hooks that hold the lead to it."""
|
||||
import io, json, os, sys, unittest
|
||||
import io, json, os, shutil, sys, unittest
|
||||
from unittest import mock
|
||||
try: # the module, not its class: its tests must not run twice
|
||||
from tests import test_core
|
||||
@@ -570,7 +570,8 @@ class Plan(unittest.TestCase):
|
||||
rc, out, _ = self.hook("gate")
|
||||
self.assertIn('"block"', out)
|
||||
self.assertIn("nodes a, b are ready and not started", out)
|
||||
self.assertIn("`sisi pick --node a` `sisi pick --node b`", out)
|
||||
exe = "sisi" if shutil.which("sisi") else os.path.join(self.tmp, "lib", "current", "bin", "sisi")
|
||||
self.assertIn("`%s pick --node a` `%s pick --node b`" % (exe, exe), out)
|
||||
|
||||
def test_gate_lets_the_turn_end_while_nodes_only_run(self):
|
||||
self.ready_plan()
|
||||
|
||||
Reference in new issue
Block a user