test(fg4): preserve final region frame in recording
Co-Authored-By: Codex <noreply@anthropic.com>
This commit is contained in:
@@ -88,15 +88,18 @@ func run_recording() -> void:
|
||||
verify_complete_flow()
|
||||
var raw_button_count := int(experience.raw_button_activation_count)
|
||||
ProjectSettings.set_setting(EMULATION_SETTING, original_emulation)
|
||||
experience.audio_router.cleanup()
|
||||
experience.queue_free()
|
||||
experience = null
|
||||
await hold(45)
|
||||
expect(recording_frames <= MAX_CONTENT_FRAMES, "cleanup remains inside 30 seconds")
|
||||
if failures.is_empty():
|
||||
experience.audio_router.cleanup()
|
||||
await hold(45)
|
||||
expect(recording_frames <= MAX_CONTENT_FRAMES, "final RG-05 hold remains inside 30 seconds")
|
||||
if failures.is_empty():
|
||||
print("ABG_FG4_RG04_RECORDING_OK frames=%d seconds=%.6f rounds=24 bosses=2 records=2 terminal=RG-05 touch=%d drag=%d raw_exact_once=%d fallback=0 direct=0 enemies=12 boss_frames=%d,%d static_motion=true damage=true hit_pause=true shake=true clause=true copy=true redaction=true omitted_target=true replay=true pointer=true audio=quillroot+7" % [recording_frames, float(recording_frames) / 30.0, parsed_touches, parsed_drags, raw_button_count, Dictionary(boss_frames["BO-R4-01"]).size(), Dictionary(boss_frames["BO-R4-02"]).size()])
|
||||
quit(0)
|
||||
else:
|
||||
experience.audio_router.cleanup()
|
||||
experience.queue_free()
|
||||
experience = null
|
||||
await hold(45)
|
||||
for failure in failures:
|
||||
push_error(failure)
|
||||
quit(1)
|
||||
|
||||
Reference in New Issue
Block a user