Use only one core on fugu by default.
Make the current buildbot setting the default so
that we can remove the setting from the buildbot.
Test: "testrunner.py --host" and check the concurrency
Test: "testrunner.py --target" and check the concurrency
Change-Id: I0293d00e7ace1087341a387802a1b2bfeb1cb719
diff --git a/test/testrunner/testrunner.py b/test/testrunner/testrunner.py
index bdd0d10..c531d2e 100755
--- a/test/testrunner/testrunner.py
+++ b/test/testrunner/testrunner.py
@@ -314,13 +314,18 @@
_user_input_variants['address_sizes_target']['target'] = _user_input_variants['address_sizes']
global n_thread
- if n_thread == 0:
- if 'target' in _user_input_variants['target']:
+ if 'target' in _user_input_variants['target']:
+ device_name = get_device_name()
+ if n_thread == 0:
# Use only half of the cores since fully loading the device tends to lead to timeouts.
n_thread = get_target_cpu_count() // 2
- else:
+ if device_name == 'fugu':
+ n_thread = 1
+ else:
+ device_name = "host"
+ if n_thread == 0:
n_thread = get_host_cpu_count()
- print_text("Concurrency: " + str(n_thread) + "\n")
+ print_text("Concurrency: {} ({})\n".format(n_thread, device_name))
global extra_arguments
for target in _user_input_variants['target']: