Update the WASM contract for radars configured at deployment (#144)
build / mod (push) Failing after 1m21s
build / mod (push) Failing after 1m21s
The real-.hmod scenario still expected the pre-#134 role switch to retune radar 4 and return its role as feedback. After #134 the profile is chosen at deployment and dispatch refuses the old syntax, so step 14 failed with no feedback. Both stale checks now expect the intended refusal, naming deploy radar_search|radar_track|radar_height and on/off. The deployed station is not transformed back for the test. Verified with python3 tools/airdef.py test-wasm on the pinned host 2bcce64236 and the real airdef.hmod: 30 steps pass. Co-Authored-By: Kimi Code <noreply@moonshot.ai>
This commit is contained in:
@@ -50,13 +50,15 @@ expect.feedback = "№2 С-400: режим launcher"
|
||||
[[step]]
|
||||
command = "airdef deploy radar_track"
|
||||
|
||||
# The profile is chosen at deployment (#134): the old role switch is refused,
|
||||
# and says where the profile comes from instead of retuning the station.
|
||||
[[step]]
|
||||
command = "airdef radar 4 search"
|
||||
expect.feedback = "№4 РЛС: роль search"
|
||||
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в search не меняет оборудование. Доступно on/off."
|
||||
|
||||
[[step]]
|
||||
command = "airdef radar 4 engagement"
|
||||
expect.feedback = "№4 РЛС: роль engagement"
|
||||
expect.error = "Профиль РЛС задаётся при размещении (deploy radar_search|radar_track|radar_height); переключение в engagement не меняет оборудование. Доступно on/off."
|
||||
|
||||
[[step]]
|
||||
command = "airdef radar 4 off"
|
||||
|
||||
Reference in New Issue
Block a user