diff --git a/infra/deploy/test_windows_release_bundle_mode.ps1 b/infra/deploy/test_windows_release_bundle_mode.ps1 index 05f6464..63dfa2c 100644 --- a/infra/deploy/test_windows_release_bundle_mode.ps1 +++ b/infra/deploy/test_windows_release_bundle_mode.ps1 @@ -68,8 +68,7 @@ try { $copy = $targetArchive.CreateEntry($entry.FullName, [System.IO.Compression.CompressionLevel]::NoCompression) $copy.ExternalAttributes = $entry.ExternalAttributes if (-not $changed) { - $copy.ExternalAttributes = [BitConverter]::ToInt32( - [BitConverter]::GetBytes([uint32]0x81A00000), 0) + $copy.ExternalAttributes = [int]-2120220672 $changed = $true } $entryInput = $entry.Open() diff --git a/infra/deploy/test_windows_release_launcher.py b/infra/deploy/test_windows_release_launcher.py index b2bf82b..733302a 100644 --- a/infra/deploy/test_windows_release_launcher.py +++ b/infra/deploy/test_windows_release_launcher.py @@ -263,6 +263,8 @@ class WindowsReleaseBootstrapTests(unittest.TestCase): self.assertIn("[IO.FileAttributes]::ReparsePoint", harness) self.assertIn("[IO.Directory]::Delete($resolvedRoot, $true)", harness) self.assertIn("-not $itemPath.StartsWith($resolvedRoot + '\\'", harness) + self.assertLess(harness.index("if ($alteredMode -ne 0x81A0)"), + harness.index("Assert-ReceiverBundleEntryMode -Entry $alteredEntry")) def test_windows_tool_environment_discards_path_and_git_overrides(self): environment = {