From 28c071185b21cb62e9f97b70d0a8ed00fc1fa669 Mon Sep 17 00:00:00 2001 From: GeekMr <140129782+WilliamWang1721@users.noreply.github.com> Date: Sun, 13 Sep 2026 17:50:14 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E5=A4=8D=E8=B7=A8=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E4=B8=B4=E6=97=B6=E8=B7=AF=E5=BE=84=E6=AF=94=E8=BE=83?= =?UTF-8?q?=E5=B9=B6=E8=A7=A6=E5=8F=91=20Python=20=E6=94=B9=E5=8A=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linux-lua.yml | 2 ++ scripts/conformance/tests/test_harness.py | 2 +- scripts/tests/test_architecture_budgets.py | 2 +- scripts/tests/test_xplat.py | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-lua.yml b/.github/workflows/linux-lua.yml index da8e1b7..f64ffce 100644 --- a/.github/workflows/linux-lua.yml +++ b/.github/workflows/linux-lua.yml @@ -5,6 +5,7 @@ on: push: paths: - "**/*.rs" + - "scripts/**/*.py" - "**/Cargo.toml" - "Cargo.lock" - "rust-toolchain.toml" @@ -12,6 +13,7 @@ on: pull_request: paths: - "**/*.rs" + - "scripts/**/*.py" - "**/Cargo.toml" - "Cargo.lock" - "rust-toolchain.toml" diff --git a/scripts/conformance/tests/test_harness.py b/scripts/conformance/tests/test_harness.py index 950c0f0..e1b97e5 100644 --- a/scripts/conformance/tests/test_harness.py +++ b/scripts/conformance/tests/test_harness.py @@ -139,7 +139,7 @@ class ArchiveSafetyTests(unittest.TestCase): def test_macos_bundle_resolves_declared_executable_and_rejects_other_paths(self) -> None: with tempfile.TemporaryDirectory() as directory: - root = Path(directory) / "Pebrel Preview.app" + root = Path(directory).resolve() / "Pebrel Preview.app" binary = root / "Contents" / "MacOS" / "pebrel" binary.parent.mkdir(parents=True) binary.write_bytes(b"fixture") diff --git a/scripts/tests/test_architecture_budgets.py b/scripts/tests/test_architecture_budgets.py index bbfa0f6..91cd27a 100644 --- a/scripts/tests/test_architecture_budgets.py +++ b/scripts/tests/test_architecture_budgets.py @@ -13,7 +13,7 @@ class LineBudgetTests(unittest.TestCase): def setUp(self): self.temporary = tempfile.TemporaryDirectory() self.addCleanup(self.temporary.cleanup) - self.root = Path(self.temporary.name) + self.root = Path(self.temporary.name).resolve() (self.root / "app/src").mkdir(parents=True) def write(self, name, count): diff --git a/scripts/tests/test_xplat.py b/scripts/tests/test_xplat.py index 55720a1..cc238ad 100644 --- a/scripts/tests/test_xplat.py +++ b/scripts/tests/test_xplat.py @@ -18,7 +18,7 @@ class XplatIsolationTests(unittest.TestCase): def setUp(self): self.temp = tempfile.TemporaryDirectory(prefix="nebula-xplat-test-") self.addCleanup(self.temp.cleanup) - self.root = Path(self.temp.name) + self.root = Path(self.temp.name).resolve() self.repo = self.root / "repo with spaces" self.scripts = self.repo / "scripts/xplat" shutil.copytree(ROOT / "scripts/xplat", self.scripts)