diff --git a/Il2CppTests/update-expected-results.ps1 b/Il2CppTests/update-expected-results.ps1 index 3126b4b..6ec1705 100644 --- a/Il2CppTests/update-expected-results.ps1 +++ b/Il2CppTests/update-expected-results.ps1 @@ -16,6 +16,10 @@ $cpp2 = (gci "$PSScriptRoot/TestBinaries/*/test-cpp-result-1/appdata/*" -Filter # Get path to expected test results $results = "$PSScriptRoot/TestExpectedResults" +# Wipe existing results +rm -Recurse -Force $results >$null +mkdir $results + $cs | % { $target = $results + "/" + (Split-Path -Path (Split-Path -Path $_) -Leaf) + ".cs" cp $_ -Destination $target -Force