Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision eea20cd3ba9700ffcd127410e589d7222d9aefb7)
+++ tests/pybin/tools.py	(revision b2a37b045b22a2a00392f054434cf6298517bec0)
@@ -261,5 +261,12 @@
 			os.write(int(make_jobs_fds.group(3)), tokens)
 		else :
-			options.jobs = multiprocessing.cpu_count()
+			if settings.distribute:
+				ret, jstr = sh("distcc", "-j", output_file=subprocess.PIPE, ignore_dry_run=True)
+				if ret == 0:
+					options.jobs = int(jstr.strip())
+				else :
+					options.jobs = multiprocessing.cpu_count()
+			else:
+				options.jobs = multiprocessing.cpu_count()
 	else :
 		force = True
