mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-16 06:44:43 -06:00
fix: offer Lakka's card route from Linux only
Lakka keeps /storage on the card's ext4 partition (Lakka-LibreELEC 4696b48f scripts/mkimage:72, 95), which Windows and macOS do not open, and its page offered them a card route. card_run is now [linux], and a page with no Windows route says only Linux opens the card.
This commit is contained in:
1 parent
657e3bc55b
commit
6015552fb2
3 files changed
+22
-3
No files matched your search
@@ -937,6 +937,19 @@ class ARouteWithoutANetwork(unittest.TestCase):
|
||||
self.assertEqual(_tab_labels(card), set())
|
||||
self.assertIn("**Linux**", card)
|
||||
|
||||
def test_a_linux_partition_card_says_why_and_offers_linux_alone(self):
|
||||
"""Lakka's /storage is the card's ext4 partition (Lakka-LibreELEC
|
||||
scripts/mkimage): its page offered Windows and macOS tabs for a
|
||||
folder neither can open."""
|
||||
for name in ("lakka", "retropie"):
|
||||
with self.subTest(setup=name):
|
||||
self.assertEqual(siteguides.GUIDES[name].card_run, ("linux",))
|
||||
card = _plain_page(f"platforms/{name}.md").split("No network?", 1)[1]
|
||||
card = card.split("## On the device", 1)[0]
|
||||
self.assertEqual(_tab_labels(card), set())
|
||||
self.assertNotIn("E:\\", card)
|
||||
self.assertIn("Only a Linux computer opens the card.", card)
|
||||
|
||||
def test_no_zip_is_promised_for_an_unmarked_setup(self):
|
||||
for name in SETUPS:
|
||||
if REGISTRY[name].get("release_pack") is True:
|
||||
|
||||
Reference in new issue
Block a user