test: retain visible battle review hold
This commit is contained in:
@@ -46,10 +46,10 @@ func run_test() -> void:
|
||||
failures.append("dynamic feedback battle exceeded eight-second pacing target")
|
||||
if game.guard_events != 1 or game.rear_events != 1 or game.victory_events != 1:
|
||||
failures.append("dynamic feedback changed authoritative event counts")
|
||||
await create_timer(1.0).timeout
|
||||
await create_timer(read_float("ABG_P9_0R3_VICTORY_HOLD", 1.0)).timeout
|
||||
game.queue_free()
|
||||
game = null
|
||||
await settle(210)
|
||||
await settle(15)
|
||||
if failures.is_empty():
|
||||
print("ABG_P9_0R3_DYNAMIC_SLICE_OK duration=%.2f front=%s rear=%s feedback=4 values=%s visible_frames=%d impact_once=true renderer=normal" % [elapsed, read_string("ABG_P9_0R3_FRONT", "Hearthguard"), read_string("ABG_P9_0R3_REAR", "Farstring"), sorted_values(seen_values), seen_feedback_labels])
|
||||
call_deferred("finish", 0)
|
||||
@@ -83,6 +83,11 @@ func read_string(key: String, fallback: String) -> String:
|
||||
return value if not value.is_empty() else fallback
|
||||
|
||||
|
||||
func read_float(key: String, fallback: float) -> float:
|
||||
var value := OS.get_environment(key)
|
||||
return float(value) if not value.is_empty() else fallback
|
||||
|
||||
|
||||
func finish(exit_code: int) -> void:
|
||||
quit(exit_code)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user