Support running on machines that does not have >=3 cores

Change-Id: I9147a4e092dda56f384dfcb6d0c902016339d6d5
diff --git a/d8_r8/commonBuildSrc/src/main/kotlin/TestConfigurationHelper.kt b/d8_r8/commonBuildSrc/src/main/kotlin/TestConfigurationHelper.kt
index 46feea5..9a8c17f 100644
--- a/d8_r8/commonBuildSrc/src/main/kotlin/TestConfigurationHelper.kt
+++ b/d8_r8/commonBuildSrc/src/main/kotlin/TestConfigurationHelper.kt
@@ -149,7 +149,7 @@
         test.maxParallelForks = processors.div(userDefinedCoresPerFork.toInt())
       } else {
         // On work machines this seems to give the best test execution time (without freezing).
-        test.maxParallelForks = processors.div(3)
+        test.maxParallelForks = maxOf(processors.div(3), 1)
         // On low cpu count machines (bots) we under subscribe, so increase the count.
         if (processors == 32) {
           test.maxParallelForks = 15