Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

release_manifest test: the key check expects the local warning text whatever CI sets

v0lumehi0aae953f0088
diff --git a/tools/tests/test_release_manifest.py b/tools/tests/test_release_manifest.py
index 11da5967..3a26fd5e 100644
--- a/tools/tests/test_release_manifest.py
+++ b/tools/tests/test_release_manifest.py
@@ -135,6 +135,7 @@ class Manifest(unittest.TestCase):
def test_without_the_secret_the_key_check_passes_with_a_warning(self):
import contextlib, io
del os.environ[R.KEY_ENV]
+ os.environ.pop('GITHUB_ACTIONS', None) # in CI the warning is an annotation, the plain text is the local one
buf = io.StringIO()
with contextlib.redirect_stdout(buf): self.assertEqual(R.main(['check-key', '--pub', str(self.pubfile)]), 0)
self.assertIn('ENGINE_SIGNING_KEY is not set', buf.getvalue()); self.assertIn('WARNING', buf.getvalue())