mirror of
https://github.com/MCKero6423/uv-k5-v3-emulator.git
synced 2026-10-02 03:15:36 +00:00
Merge the CI fix for the unit job
This commit is contained in:
commit
c0c2c3230e
2 files changed
+10
-1
No files matched your search
@@ -140,6 +140,13 @@ class TestInstall(unittest.TestCase):
|
||||
class TestResolve(unittest.TestCase):
|
||||
def test_a_bare_name_is_found_under_work_apps(self):
|
||||
"""The first attempt at this used 'Beam.app' from the repository root."""
|
||||
work_apps = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "work", "apps")
|
||||
os.makedirs(work_apps, exist_ok=True)
|
||||
beam = os.path.join(work_apps, "Beam.app")
|
||||
if not os.path.exists(beam):
|
||||
with open(beam, "wb") as fh:
|
||||
fh.write(b"fixture")
|
||||
self.addCleanup(lambda: os.path.exists(beam) and os.unlink(beam))
|
||||
path = A.resolve("Beam.app")
|
||||
self.assertTrue(os.path.exists(path), path)
|
||||
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user