Skip to content

ci/test.lua: reinstate loading of a specified save dir - #5907

Draft
Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:test-load-save-dir
Draft

Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:test-load-save-dir

Conversation

@Alistair-Afton

Copy link
Copy Markdown
Contributor

Summary

Reinstates the load-save call in ensure_fortress so the documented -s/--save_dir test option actually selects which save to load, instead of always loading the first save in the list. The load_first_save/click_top_title_button helpers it replaced are no longer needed.

Depends on DFHack/scripts#1619 (the load-save fix) merging and the scripts submodule pin updating. Until then the first run_script('load-save', ...) call hits the unavailable warning and qerrors, which would abort fortress-mode tests.

Testing

  • Locally: dfhack.run_script('load-save', 'region1') from the title screen loads the region1 fort
  • CI here will exercise ensure_fortress itself once the scripts pin includes the fix

load-save works on the current title screen again, so ensure_fortress can
honor the documented -s/--save_dir option instead of always loading the
first save in the list. The load-first-save helpers it replaced are no
longer needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant