Skip to content

test_linux_process_stop_executes_before_data_wipe fails on dev machines with a desktop build present #1566

Description

@debpalash

tests/test_desktop_prod_scripts.py::test_linux_process_stop_executes_before_data_wipe isolates HOME/XDG_DATA_HOME into a tmp fixture but executes scripts/desktop-prod.sh --skip-build with cwd=<repo root>. Its final assertion (returncode != 0) relies on "no build artifact exists in this fixture" — but the launch step resolves the artifact from the repo, not the fixture, so on any machine where the desktop app has been built (src-tauri target present) the script exits 0 and the test fails. CI passes only because runners never have a build.

Fix direction: make the artifact lookup part of the fixture (e.g. run the script from a tmp copy with a stubbed target dir, or stub the launch binary path the same way python3/pgrep/lsof are stubbed) so the test is deterministic on dev boxes too.

Found while verifying #1564/#1565 locally — unrelated to either change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions