# Before anything else, make sure we get valid --debug=time results
# when just running the help option.
expected_total_time = complete_time - overhead
-pattern = r'Command execution time: (\d+\.\d+) seconds'
-times = list(map(float, re.findall(pattern, test.stdout())))
+pattern = r'Command execution time:(.*):(\d+\.\d+) seconds'
+for target,time in re.findall(pattern, test.stdout()):
expected_command_time = 0.0
expected_command_time += t
+if targets != expected_targets:
+Scons reported the targets of timing information as %(targets)s,
+but the actual targets should have been %(expected_targets)s.
if not within_tolerance(expected_command_time, command_time, 0.01):
SCons -j1 reported a total command execution time of %(command_time)s,