Skip to content

Commit 6687dac

Browse files
akoeplingerjonpryor
authored andcommitted
[tests] Use single NUnit worker to prevent hanging msbuild tests (#972)
The `Xamarin.Android.Build.Tests` NUnit tests recently started hanging after the tests were done. Run tests with a single worker as a workaround until we figure out why, unblocking Jenkins.
1 parent 5a9ba9f commit 6687dac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ NUNIT_TESTS = \
1212

1313
NUNIT_CONSOLE = packages/NUnit.ConsoleRunner.3.7.0/tools/nunit3-console.exe
1414

15+
NUNIT_WORKERS ?= --workers=1
16+
1517
ifneq ($(V),0)
1618
MONO_OPTIONS += --debug
1719
endif
@@ -138,7 +140,7 @@ define RUN_NUNIT_TEST
138140
MONO_TRACE_LISTENER=Console.Out \
139141
USE_MSBUILD=$(if $(USE_MSBUILD),$(USE_MSBUILD),0) \
140142
$(RUNTIME) --runtime=v4.0.0 \
141-
$(NUNIT_CONSOLE) $(NUNIT_EXTRA) $(1) \
143+
$(NUNIT_CONSOLE) $(NUNIT_EXTRA) $(NUNIT_WORKERS) $(1) \
142144
$(if $(TEST),--test=$(TEST)) \
143145
--result="TestResult-$(basename $(notdir $(1))).xml;format=nunit2" \
144146
-output=bin/Test$(CONFIGURATION)/TestOutput-$(basename $(notdir $(1))).txt \

0 commit comments

Comments
 (0)