summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--packages/meshbay-node/tests/test_packaging_default_env.py5
2 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 95e1550..4e3fd9e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,6 +76,9 @@ packages/meshbay-client/dist-msix/
# would otherwise swallow.
!packages/meshbay-client/build/
!packages/meshbay-client/build/**
+# ...except the work directories the Windows build makes there (`_pip-audit`,
+# `_pyinstaller`, `_node-build-venv`).
+packages/meshbay-client/build/_*/
# packaging build scripts — real source, not build output
!packaging/build/
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(