mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-19 04:15:57 +00:00
The setup's compile step runs again when the release string changes, so totk.exe carries the version of the release that built it (#1078)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44450a15a0
commit
cedc0a63ad
2 files changed
+18
-1
No files matched your search
@@ -464,6 +464,20 @@ class LiftRunTest(unittest.TestCase):
|
||||
self.assertIn('warn.plugins_skipped', self.ctx.reporter.out.getvalue())
|
||||
|
||||
|
||||
class CompileKeyTest(unittest.TestCase):
|
||||
"""The compile key follows the release string: the exe carries the port version of the release that built it."""
|
||||
|
||||
def key(self, release):
|
||||
layout = SimpleNamespace(release=release, pgo=lambda version: None)
|
||||
ctx = SimpleNamespace(layout=layout, keys={'lift': 'L'}, state={'version': '1.4.3'})
|
||||
with mock.patch.object(steps, 'runtime_key', return_value='R'):
|
||||
return steps.Compile().key(ctx)
|
||||
|
||||
def test_new_release_compiles_again(self):
|
||||
self.assertEqual(self.key('0.4.2+abc'), self.key('0.4.2+abc'))
|
||||
self.assertNotEqual(self.key('0.4.2+abc'), self.key('0.4.3+def'))
|
||||
|
||||
|
||||
class CompileLockedTest(unittest.TestCase):
|
||||
"""Compile.run when the linker cannot write its totk.exe: another program holds the file (a game started from the
|
||||
temp build folder, an antivirus that quarantined it), which gets its own message instead of the plain failure."""
|
||||
|
||||
Reference in new issue
Block a user