Skip to content

Commit 589303f

Browse files
committed
tests: Fix manifest tests for buckets
- Fixes a bug introduced with 478f52c that broke manifest tests on other buckets - Allows testing "bucket" subdirectory for buckets
1 parent bb5df4a commit 589303f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/Import-Bucket-Tests.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ $project_file_exclusions = @(
1919
'supporting(\\|/)validator(\\|/)packages(\\|/)*'
2020
)
2121

22+
$bucketdir = $repo_dir
23+
if(Test-Path("$repo_dir\bucket")) {
24+
$bucketdir = "$repo_dir\bucket"
25+
}
26+
2227
. "$psscriptroot\Import-File-Tests.ps1"
23-
. "$psscriptroot\Scoop-Manifest.Tests.ps1"
28+
. "$psscriptroot\Scoop-Manifest.Tests.ps1" -bucketdir $bucketdir

test/Scoop-Manifest.Tests.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
param($bucketdir = "$psscriptroot\..\bucket\")
12
. "$psscriptroot\Scoop-TestLib.ps1"
23
. "$psscriptroot\..\lib\core.ps1"
34
. "$psscriptroot\..\lib\manifest.ps1"

0 commit comments

Comments
 (0)