Index: tests/pybin/tools.py
===================================================================
--- tests/pybin/tools.py	(revision eea20cd3ba9700ffcd127410e589d7222d9aefb7)
+++ tests/pybin/tools.py	(revision 1e24d136f25283f797c025440eb7b69e0b3e0d9d)
@@ -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
