fix: skip the line mode pty run without pyte

The offline line mode test opened a pty with pyte missing and errored where its neighbours skip. A comment in install.py also carried a clause semicolon that the prose style test refuses.
This commit is contained in:
Abdessamad Derraz committed 2026-10-27 04:20:23 +01:00
1 parent 625bee35cc
commit e96d1326a3
5 files changed
+13 -11

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@
$ErrorActionPreference = "Stop"
$defaultInstallUrl = "https://raw.githubusercontent.com/Abdess/retrobios/main/install.py"
$defaultInstallSha256 = "aebd38c69bc524b655e592ae0407ec6095696b846370e2c726275db8bfd050f4"
$defaultInstallSha256 = "2127f3c7a1646cc408520e364d2a08c6aa32a8905990c1a2581ce977b39017ab"
$maximumInstallerBytes = 2MB
$installerExit = 0
$installer = if ($PSScriptRoot) { Join-Path $PSScriptRoot "install.py" } else { $null }
+1 -1
View File
@@ -9907,7 +9907,7 @@ def card_install_dest(named: str, plat: str, interactive: bool, ask: bool = True
card listed for Onion was taken, and the run became a muOS install.
Without questions the run stops on the --dest that names the card. ask
is whether creating several missing folders is asked first, as it is
for --dest; no to it asks for the card again.
for --dest, and no to it asks for the card again.
"""
setup = card_setup(named, plat) or CardSetup(display_name(plat), plat, "")
system = setup.name
+1 -1
View File
@@ -18,7 +18,7 @@ esac
TEMP_INSTALLER=""
TEMP_DIRECTORY=""
DEFAULT_INSTALL_URL="https://raw.githubusercontent.com/Abdess/retrobios/main/install.py"
DEFAULT_INSTALL_SHA256="aebd38c69bc524b655e592ae0407ec6095696b846370e2c726275db8bfd050f4"
DEFAULT_INSTALL_SHA256="2127f3c7a1646cc408520e364d2a08c6aa32a8905990c1a2581ce977b39017ab"
MAX_INSTALLER_BYTES=2097152
cleanup() {
+8 -8
View File
@@ -27,8 +27,8 @@
{
"dest": "roms/ports/retrobios/install.py",
"repo_path": "install.py",
"size": 673355,
"sha256": "aebd38c69bc524b655e592ae0407ec6095696b846370e2c726275db8bfd050f4",
"size": 673359,
"sha256": "2127f3c7a1646cc408520e364d2a08c6aa32a8905990c1a2581ce977b39017ab",
"executable": false
},
{
@@ -71,8 +71,8 @@
"muos": {
"archive": {
"dest": "ARCHIVE/RetroBIOS.muxapp",
"size": 725904,
"sha256": "ec454bce0a07adfd46f7791804c18e69d568b294c2d0f224541887fc2431ba52"
"size": 725908,
"sha256": "da7fa84e69575d43fbf529c053f43f8f665963c19e25ed44923183a072ed919d"
},
"members": [
{
@@ -92,8 +92,8 @@
{
"name": "RetroBIOS/install.py",
"repo_path": "install.py",
"size": 673355,
"sha256": "aebd38c69bc524b655e592ae0407ec6095696b846370e2c726275db8bfd050f4",
"size": 673359,
"sha256": "2127f3c7a1646cc408520e364d2a08c6aa32a8905990c1a2581ce977b39017ab",
"executable": false
},
{
@@ -166,8 +166,8 @@
{
"dest": ".config/modules/retrobios/install.py",
"repo_path": "install.py",
"size": 673355,
"sha256": "aebd38c69bc524b655e592ae0407ec6095696b846370e2c726275db8bfd050f4",
"size": 673359,
"sha256": "2127f3c7a1646cc408520e364d2a08c6aa32a8905990c1a2581ce977b39017ab",
"executable": false
},
{
+2
View File
@@ -3601,6 +3601,8 @@ class LineModeOffline(unittest.TestCase):
"""tui_audit_5 P2-3 and P3-8.4: the line mode under --offline asked to
download, and said nothing of the data files."""
@unittest.skipUnless(pyte and pty and hasattr(pty, "fork"),
"the line mode run needs pyte and a pty")
def test_nothing_is_offered_that_cannot_come(self):
with FakeRepository() as repo:
env = {**repo.env(), "TERM": "xterm", install.OFFLINE_VARIABLE: "1"}