From 23cb42e97b6fdff85fad3c3d4b9c9dd8e8d0a0ce Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 15 Oct 2026 17:42:30 +0200 Subject: build: ignore the Windows build's work directories; a Linux mode check off Windows packages/meshbay-client/build/_pip-audit (and its siblings) is made by the Windows build and was untracked noise. test_packaging_default_env checked a POSIX file mode that Git's bash on Windows cannot set. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-node/tests/test_packaging_default_env.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/meshbay-node/tests/test_packaging_default_env.py b/packages/meshbay-node/tests/test_packaging_default_env.py index 60bbb78..586aef0 100644 --- a/packages/meshbay-node/tests/test_packaging_default_env.py +++ b/packages/meshbay-node/tests/test_packaging_default_env.py @@ -12,6 +12,7 @@ under bash against a scratch repo, rather than reading its text. import shutil import subprocess +import sys from pathlib import Path import pytest @@ -55,7 +56,9 @@ def test_only_the_token_line_ships(tmp_path): out = _build(tmp_path, (TOKEN + "\r\nANOTHER_SECRET=hunter2\n# a note\n").encode()) assert out is not None assert out.read_bytes() == (TOKEN + "\n").encode() - assert out.stat().st_mode & 0o777 == 0o644 + # A Linux package's mode; Windows (Git's bash there) has no such bits to set. + if sys.platform != "win32": + assert out.stat().st_mode & 0o777 == 0o644 @pytest.mark.parametrize( -- cgit v1.2.3