Skip to content

Commit c53df98

Browse files
corbobgep13
authored andcommitted
(chocolatey#1174) Add non-normalized packages for tests
Add packages with a non-normalized version number. These are the packed nupkgs as we can't `choco pack` them with v2.x. Updated the `Invoke-Tests.ps1` file in order to also copy these files to the test packages directory.
1 parent 238bd2e commit c53df98

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Invoke-Tests.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' }
1+
#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' }
22
#Requires -RunAsAdministrator
33
<#
44
.SYNOPSIS
@@ -50,7 +50,8 @@ else {
5050
if (-not (Test-Path "$TestPath/packages") -or -not $SkipPackaging) {
5151
$null = New-Item -Path "$TestPath/packages" -ItemType Directory -Force
5252
# Get and pack packages
53-
$nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse | Where-Object Name -Like '*.nuspec'
53+
$nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse -Include *.nuspec
54+
Get-ChildItem -Path $PSScriptRoot/tests/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$TestPath/packages"
5455

5556
foreach ($file in $nuspecs) {
5657
Write-Host "Packaging $file"
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)