From e34a0eb2e0e689c022aef98ca58a1e27bd8b379f Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 28 Nov 2026 08:45:05 +0000 Subject: [PATCH] test(molecule): derive the order test from the duration list Part of #432. The start-order test now reads its scenarios and their seconds from the run script's list, so a refreshed list does not break it; the empty-lanes test only asserts the value is accepted, and the script's header and duration-list comments are rewrapped and say the list is keyed by scenario directory. Assisted-by: Claude Code --- scripts/run_molecule_scenarios.sh | 10 +++-- tests/scripts/test_run_molecule_scenarios.py | 46 ++++++++++++-------- 2 files changed, 33 insertions(+), 23 deletions(-) diff --git a/scripts/run_molecule_scenarios.sh b/scripts/run_molecule_scenarios.sh index 51a1b98..3a1a33e 100755 --- a/scripts/run_molecule_scenarios.sh +++ b/scripts/run_molecule_scenarios.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # The Molecule workflow's "Run the scenarios" step: `molecule test` for each scenario directory on -# stdin, MOLECULE_LANES (default 4, also when empty) at a time, longest first, each with its own log and ANSIBLE_HOME under -# // (no collection is installed there: .config/molecule/config.yml sets prerun false). +# stdin, MOLECULE_LANES (default 4, also when empty) at a time, longest first, each with its own +# log and ANSIBLE_HOME under // (no collection is installed there: +# .config/molecule/config.yml sets prerun false). # Exit 1 on a failure. # # scripts/run_molecule_scenarios.sh < scenario-dirs @@ -78,8 +79,9 @@ done mkdir -p "$work" # Seconds each scenario took in the last full run, so the longest start first and none started -# late sets the end of the run. Refresh from a full run's `finished