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