mirror of
https://github.com/yusufipk/dikte.git
synced 2026-09-11 10:56:10 +00:00
Let the Windows job read the merged suite
The merge put a Windows runner under tests master wrote for two systems, and 21 of them fell over on it. Two were the quoting: `command_for` goes through shlex now, so a Windows path comes back in quotes, and the two tests that read the command as a string were reading it as a Linux one. They ask through the same join instead. The other nineteen are `integrate.py`, which writes the menu entry and the login item a downloaded build installs for itself. There are two downloads, an AppImage and a disk image, so the module has a Linux half and a macOS half and nothing a Windows host would run: its tests hand the fake home over in $HOME, which Windows does not read, and compare paths that start at the root. They carry `@posix_only`, which comes off again the day there is a Windows build to integrate.
This commit is contained in:
@@ -40,6 +40,18 @@ linux_only = unittest.skipUnless(
|
||||
"covers the Linux desktop stack (PipeWire, wl-clipboard, ydotool, KDE)",
|
||||
)
|
||||
|
||||
# The launchers a downloaded build writes for itself. There are two downloads,
|
||||
# an AppImage and a disk image, so `integrate` has a Linux half and a macOS half
|
||||
# and no third one, and the tests that pin them stand in a home laid out the way
|
||||
# those two systems lay one out: paths that start at the root, a $HOME the
|
||||
# library reads, a symlink for the command. None of that is a Windows machine,
|
||||
# where the same code never runs. A Windows build would add an entry there and
|
||||
# take the mark off these.
|
||||
posix_only = unittest.skipIf(
|
||||
sys.platform == "win32",
|
||||
"covers what an AppImage and a .app write into the desktop they landed on",
|
||||
)
|
||||
|
||||
|
||||
def _no_network(*args, **kwargs):
|
||||
raise AssertionError(
|
||||
|
||||
Reference in New Issue
Block a user