From 8979625780ff7f5136e323e5256d3052abb9c6bf Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 14 Dec 2020 02:55:49 +0100 Subject: [PATCH] Tests: update-expected-results.ps1 now wipes old tests first --- Il2CppTests/update-expected-results.ps1 | 4 ++++ 1 file changed, 4 insertions(+) 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