PS: Copy expected results of 2nd image in update-expected-results.ps1
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
# Get all test results
|
# Get all test results
|
||||||
$bin = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.cs)
|
$bin = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.cs)
|
||||||
|
$bin2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.cs)
|
||||||
|
|
||||||
# Get path to expected test results
|
# Get path to expected test results
|
||||||
$results = "$PSScriptRoot/TestExpectedResults"
|
$results = "$PSScriptRoot/TestExpectedResults"
|
||||||
@@ -14,4 +15,9 @@ $results = "$PSScriptRoot/TestExpectedResults"
|
|||||||
$bin | % {
|
$bin | % {
|
||||||
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".cs"
|
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".cs"
|
||||||
cp $_ -Destination $target -Force
|
cp $_ -Destination $target -Force
|
||||||
|
}
|
||||||
|
|
||||||
|
$bin2 | % {
|
||||||
|
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + "-1.cs"
|
||||||
|
cp $_ -Destination $target -Force
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user