Files
VoiceStudio/tests/test_cli_packaging.py
debpalash 15d9b3e71d fix(train7): keep voicestudio-electron link; GUI-safe launcher args
- The .deb's maintainer scripts are electron-builder's own plus a block
  that links the pre-rename /usr/bin/voicestudio-electron to the new
  command (replacing only a missing or dangling link) and removes it only
  when it is still this package's link. Sandbox tests run both blocks.
- Absolute paths and URLs passed by the desktop launcher (Exec ... %U)
  now open the app instead of being parsed as a command.
2026-11-09 14:37:01 +05:30

12 lines
508 B
Python

"""Run package layout contracts as part of the normal repository suite."""
from pathlib import Path
import subprocess
def test_unified_cli_package_layouts():
root = Path(__file__).resolve().parents[1]
result = subprocess.run(['node', '--test', 'electron/tests/cli-bundle.test.mjs',
'electron/tests/deb-scripts.test.mjs'], cwd=root,
capture_output=True, text=True, timeout=60)
assert result.returncode == 0, result.stdout + result.stderr