mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3255] [Other] Terminal tests: pass on Linux desktops and in a checkout with run configs #4530
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4530
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3255
Author: @toel1234
Created: 10/19/2026
Status: 🔄 Open
Base:
main← Head:fix/terminal-tests-linux📝 Commits (1)
ad25e97[Other] Terminal tests: pass on Linux desktops and in a checkout with run configs📊 Changes
4 files changed (+22 additions, -6 deletions)
View changed files
📝
tests/terminal/test_discovery.py(+12 -3)📝
tests/terminal/test_docker_files.py(+6 -1)📝
tests/terminal/test_launch_tui.py(+1 -1)📝
tests/terminal/test_private_files.py(+3 -1)📄 Description
Problem and result
python -m pytest tests/terminalhad five failures on Ubuntu caused by the tests, not by the code. After this PR they pass on Linux. The Windows assertions are unchanged.%APPDATA%/Strata/settings.json. Linux reads$XDG_CONFIG_HOME/strata/settings.json. A third test passed on Linux only because it wrote to that unread file. All three now usediscovery.own_settings_file().Cataloglooks "here" in the folder it runs from, this checkout. A developer checkout that holds its ownstrata-*.json(an install from source) beat the mocked app install. The test points "here" at its temporary folder.docker/smoke-test.shstarts#!/bin/bashand uses process substitution; it was parsed withsh, which is dash on Debian/Ubuntu (Syntax error: redirection unexpected). Scripts with a bash shebang are now parsed with bash; the image's sh scripts are still parsed with sh.d2a38c9ethe Linux cloudflared hint is long enough that "quick tunnel" wraps onto two rows. Whitespace is collapsed before the check.is_unshared()is documented as the same check asis_private(), so a fresh file under a normal 0002/0022 umask is not unshared. The POSIX branch now asserts the two agree.Related discussion
none. Test-only change.
Approach
Test files only:
tests/terminal/test_discovery.py,test_docker_files.py,test_launch_tui.py,test_private_files.py. No product code.Validation
Passed:
requirements.txtandrequirements-monitor.txt: the four files give 98 passed, 9 skipped.python -m pytest tests/terminal -q, this branch with the procs fix (#3254) merged, in a checkout with astrata-*.jsonat the root: 852 passed, 17 skipped, 0 failed.maine88ee39dbaseline: 6 failed (the five here plus the procs one), 846 passed, 17 skipped.Failed:
none observed.
Not run:
Limits
Note for anyone running the suite: a venv without
requirements.txtmakes the 7 lifecycle tests and the runtime test fail with "the server exited with 5 before it was ready" (missingrequests, Pillow). That is not changed here.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.