Skip to content

Commit 85e38d7

Browse files
committed
Amend test
1 parent 28cb53f commit 85e38d7

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

1.build.ps1

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ $Major = $PSVersionTable.PSVersion.Major
1212

1313
# bootstrap
1414
if ($MyInvocation.ScriptName -notlike '*Invoke-Build.ps1') {
15-
$InvokeBuildVersion = '5.10.1'
16-
$ErrorActionPreference = 'Stop'
15+
$InvokeBuildVersion = '5.11.0'
16+
$ErrorActionPreference = 1
1717
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Definition
1818
$ib = "$PSScriptRoot/packages/InvokeBuild/$InvokeBuildVersion/Invoke-Build.ps1"
1919

@@ -27,8 +27,7 @@ if ($MyInvocation.ScriptName -notlike '*Invoke-Build.ps1') {
2727
Save-Script Invoke-PowerShell -Path "$PSScriptRoot/packages" -Force
2828
}
2929

30-
& $ib -Task $Tasks -File $MyInvocation.MyCommand.Path @PSBoundParameters
31-
return
30+
return & $ib -Task $Tasks -File $MyInvocation.MyCommand.Path @PSBoundParameters
3231
}
3332

3433
# saved script alias

Basic/Local-ActionPreference/.test.ps1

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ function Invoke-Script($Path) {
2222

2323
task Test-2-1-invalid-error-effect {
2424
($r = Invoke-Script Test-2-1-invalid-error-effect.ps1)
25-
#! `*Message`: `*` for PS 7.3.0, probably some esc sequence
26-
assert ($r -clike 'Test-Preference : *Message*Done.')
25+
assert ($r -clike '*Test-Preference*Message*Done.*')
2726
}
2827

2928
task Test-2-2-invalid-warning-effect {

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015-2023 Roman Kuzmin
1+
Copyright (c) 2015-2024 Roman Kuzmin
22

33
Apache License
44
Version 2.0, January 2004

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22
[TESTS]: ./TESTS.md
33
[Invoke-PowerShell.ps1]: https://www.powershellgallery.com/packages/Invoke-PowerShell
44

0 commit comments

Comments
 (0)