Browse Source

runtimebash_wsl.test: tolerate G-103 metadata-era list row format (stale glob)

Local 'list' rows are column-padded '* <name %-35s> (active) <metadata>' since
61cf903d; the test's single-space '* fakert_beta (active)' glob predates that
and failed. Assertion intent unchanged: the row is starred AND active-marked.

Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.com
master
Julian Noble 6 days ago
parent
commit
f3a9067cbf
  1. 3
      src/tests/shell/testsuites/binscripts/runtimebash_wsl.test

3
src/tests/shell/testsuites/binscripts/runtimebash_wsl.test

@ -96,7 +96,8 @@ namespace eval ::testspace {
set r [punktest::wsl::run_in $::testspace::stagingdir {cat runtime/linux-x86_64/active.toml}]
lappend result [string trim [dict get $r output]]
set r [rtbash list]
lappend result [string match {*\* fakert_beta (active)*} [dict get $r output]]
#row is column-padded since the G-103 metadata era: '* <name %-35s> (active) <metadata>'
lappend result [string match {*\* fakert_beta*(active)*} [dict get $r output]]
set r [rtbash run hello world]
lappend result [dict get $r ok]
lappend result [string match "*FAKERT_BETA_RAN hello world*" [dict get $r output]]

Loading…
Cancel
Save