From c6ed3a096c2371c7b08d1ffed00b8989acabe4fa Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Wed, 30 Dec 2020 18:13:12 +0100 Subject: [PATCH] Tests: Disable parallelization for tests with plugins --- Il2CppTests/generate-tests.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Il2CppTests/generate-tests.ps1 b/Il2CppTests/generate-tests.ps1 index a85e5ea..1df5b72 100644 --- a/Il2CppTests/generate-tests.ps1 +++ b/Il2CppTests/generate-tests.ps1 @@ -25,8 +25,15 @@ gci -Directory $bin | % { if (Test-Path $loadOptionsFile -PathType Leaf) { $loadOptions = cat $loadOptionsFile } + $pluginsPath = "$($_.FullName)\plugins" + $attributes = "" + if (Test-Path $pluginsPath -PathType Container) { + $attributes = "[NonParallelizable]" + } + echo @" [Test] + $attributes public async Task $($_.Name -Replace '\W','_')() { await runTest(@"$($_.FullName)", new LoadOptions { $loadOptions }); }