Skip to content

Commit a64ce8b

Browse files
committed
Print test name and worker ID
1 parent d01a17a commit a64ce8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run-tests.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,8 @@ function run_all_tests_parallel(array $test_files, array $env, ?string $redir_te
15691569
echo $resultText;
15701570

15711571
if ($show_progress) {
1572-
show_test($test_idx, count($workerProcs) . "/$workers concurrent test workers running");
1572+
$workerID = $message['workerID'];
1573+
show_test($test_idx, count($workerProcs) . "/$workers concurrent test workers running [$workerID, $name]");
15731574
}
15741575

15751576
if (!is_array($name) && $result != 'REDIR') {
@@ -1666,6 +1667,8 @@ function safe_fwrite($stream, string $data)
16661667

16671668
function send_message($stream, array $message): void
16681669
{
1670+
global $workerID;
1671+
$message['workerID'] = $workerID;
16691672
$blocking = stream_get_meta_data($stream)["blocked"];
16701673
stream_set_blocking($stream, true);
16711674
safe_fwrite($stream, base64_encode(serialize($message)) . "\n");

0 commit comments

Comments
 (0)