Skip to content

Commit ef1035f

Browse files
committed
Teach the fetch test to force downloaded copy.
1 parent 6774160 commit ef1035f

File tree

1 file changed

+5
-5
lines changed
  • azure-pipelines/end-to-end-tests-dir

1 file changed

+5
-5
lines changed

azure-pipelines/end-to-end-tests-dir/fetch.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$VcpkgToolsJsonSchemaFile = (Get-Item "$PSScriptRoot/../../docs/vcpkg-tools.schema.json").FullName
44
if (-not (Test-Json -ea:0 -LiteralPath "$VcpkgRoot/scripts/vcpkg-tools.json" -SchemaFile $VcpkgToolsJsonSchemaFile)) {
5-
throw "real vcpkg-tools.json doesn't conform to schema"
5+
throw "real vcpkg-tools.json doesn't conform to schema"
66
}
77

88
if (-not $IsMacOS -and -not $IsLinux) {
@@ -20,7 +20,7 @@ if (-not $IsMacOS -and -not $IsLinux) {
2020
{
2121
"schema-version": 1,
2222
"tools": [{
23-
"name": "7zip",
23+
"name": "7zip_msi",
2424
"os": "windows",
2525
"version": "19.00",
2626
"executable": "Files\\7-Zip\\7z.exe",
@@ -86,13 +86,13 @@ if (-not $IsMacOS -and -not $IsLinux) {
8686
'@ | % { $_ -replace "`r","" } | Out-File -enc ascii $VcpkgToolsJson
8787

8888
if (-not (Test-Json -ea:0 -LiteralPath $VcpkgToolsJson -SchemaFile $VcpkgToolsJsonSchemaFile)) {
89-
throw "testing vcpkg-tools.json doesn't conform to schema"
89+
throw "testing vcpkg-tools.json doesn't conform to schema"
9090
}
9191

9292
$env:VCPKG_DOWNLOADS = Join-Path $TestingRoot 'down loads'
93-
Run-Vcpkg -TestArgs ($commonArgs + @("fetch", "7zip", "--vcpkg-root=$TestingRoot"))
93+
Run-Vcpkg -TestArgs ($commonArgs + @("fetch", "7zip_msi", "--vcpkg-root=$TestingRoot"))
9494
Throw-IfFailed
95-
Require-FileExists "$env:VCPKG_DOWNLOADS/tools/7zip-19.00-windows/Files/7-Zip/7z.exe"
95+
Require-FileExists "$env:VCPKG_DOWNLOADS/tools/7zip_msi-19.00-windows/Files/7-Zip/7z.exe"
9696

9797
Run-Vcpkg -TestArgs ($commonArgs + @("fetch", "ninja-testing", "--vcpkg-root=$TestingRoot"))
9898
Throw-IfFailed

0 commit comments

Comments
 (0)