From c91024c600f1d9526341962b7758f04dbde2b571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Tue, 24 Oct 2017 23:52:31 +0200 Subject: [PATCH] [tests] Use single NUnit worker to prevent hanging msbuild tests The Xamarin.Android.Build.Tests msbuild tests recently started hanging after the tests were done. Run tests with a single worker as a workaround until we figure out why to unblock Jenkins. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 21674ba37d5..80cca6ecaab 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ NUNIT_TESTS = \ NUNIT_CONSOLE = packages/NUnit.ConsoleRunner.3.7.0/tools/nunit3-console.exe +NUNIT_WORKERS ?= --workers=1 + ifneq ($(V),0) MONO_OPTIONS += --debug endif @@ -138,7 +140,7 @@ define RUN_NUNIT_TEST MONO_TRACE_LISTENER=Console.Out \ USE_MSBUILD=$(if $(USE_MSBUILD),$(USE_MSBUILD),0) \ $(RUNTIME) --runtime=v4.0.0 \ - $(NUNIT_CONSOLE) $(NUNIT_EXTRA) $(1) \ + $(NUNIT_CONSOLE) $(NUNIT_EXTRA) $(NUNIT_WORKERS) $(1) \ $(if $(TEST),--test=$(TEST)) \ --result="TestResult-$(basename $(notdir $(1))).xml;format=nunit2" \ -output=bin/Test$(CONFIGURATION)/TestOutput-$(basename $(notdir $(1))).txt \