Tests: Fix copy il2cpp-types.h from wrong location in update-expected-results.ps1

This commit is contained in:
Katy Coe
2020-07-20 20:18:45 +02:00
parent 83e94ebf28
commit 64fbee92b0

View File

@@ -10,8 +10,8 @@ $bin = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.cs)
$bin2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.cs) $bin2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.cs)
$py = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result.py) $py = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result.py)
$py2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result-1.py) $py2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-ida-result-1.py)
$cpp = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result.h) $cpp = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result/*" -Filter il2cpp-types.h)
$cpp2 = (gci "$PSScriptRoot/TestBinaries/*/*" -Filter test-result-1.h) $cpp2 = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result-1/*" -Filter il2cpp-types.h)
# Get path to expected test results # Get path to expected test results
$results = "$PSScriptRoot/TestExpectedResults" $results = "$PSScriptRoot/TestExpectedResults"
@@ -37,11 +37,11 @@ $py2 | % {
} }
$cpp | % { $cpp | % {
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".h" $target = $results + "/" + (Split-Path -Path (Split-Path -Path (Split-Path -Path $_)) -Leaf) + ".h"
cp $_ -Destination $target -Force cp $_ -Destination $target -Force
} }
$cpp2 | % { $cpp2 | % {
$target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + "-1.h" $target = $results + "/" + (Split-Path -Path (Split-Path -Path (Split-Path -Path $_)) -Leaf) + "-1.h"
cp $_ -Destination $target -Force cp $_ -Destination $target -Force
} }