Skip to content

Commit f36f7e1

Browse files
oharboeclaude
andcommitted
test_flow_sh.py: the stage runs through run_step.tcl
flow.sh now runs every stage as run_step.tcl with the stage script in STEP_TCL, so floorplan.tcl is no longer on the command line RUN_CMD sees. Check both: run_step.tcl in the command, floorplan.tcl in STEP_TCL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent e144603 commit f36f7e1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎flow/test/test_flow_sh.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def test_run_cmd_runs_the_stage(self):
7878
import os, sys
7979
with open({marker!r}, "a") as m:
8080
m.write(" ".join(sys.argv[1:]) + "\\n")
81+
m.write(os.environ.get("STEP_TCL", "") + "\\n")
8182
run_command = os.path.join({SCRIPTS_DIR!r}, "run_command.py")
8283
os.execv(sys.executable, [sys.executable, run_command] + sys.argv[1:])
8384
"""))
@@ -87,7 +88,10 @@ def test_run_cmd_runs_the_stage(self):
8788

8889
self.assertTrue(os.path.exists(marker), "RUN_CMD did not run the stage")
8990
with open(marker) as f:
90-
self.assertIn("floorplan.tcl", f.read())
91+
argv, step_tcl = f.read().splitlines()
92+
# The stage runs through run_step.tcl, which sources STEP_TCL.
93+
self.assertIn("run_step.tcl", argv)
94+
self.assertEqual(os.path.basename(step_tcl), "floorplan.tcl")
9195
self.assertIn("Elapsed time:", log)
9296
self.assert_summary(log)
9397

0 commit comments

Comments
 (0)