Fix unit CI failures in app tests

Co-authored-by: MCKero6423 <222912022+MCKero6423@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]andMCKero6423 authored and GitHub committed 2026-10-01 14:30:57 +00:00
1 parent 5a8e987451
commit 6343c150ef
2 files changed
+10 -1

No files matched your search

+3 -1
View File
@@ -480,7 +480,9 @@ def create_app(client, frame_addr: int = None, status_addr: int = None, scale: i
# Power off, apply edit(path) to a working copy, power on again.
if flash is None:
raise RuntimeError("this server was started without flash control")
work = os.path.join(upload_dir(), "flash-current.img")
directory = upload_dir()
os.makedirs(directory, exist_ok=True)
work = os.path.join(directory, "flash-current.img")
running = supervisor is not None and supervisor.is_running()
if running:
# Takes the emulator's own write-back with it, so an edit builds on what