Skip to content

Commit c8cb8a2

Browse files
committed
adjust script for the new lit output format
1 parent 0dcec58 commit c8cb8a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/gen-dashboard.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@
2626
foreach ($test_failures as $test) {
2727
if (!preg_match('@'.$test.'\' FAILED \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\n'.
2828
'Exit Code:[^\n]+\n\n'.
29-
'(?:Command Output \(stdout\):\n--.*?\n--\n)?'.
30-
'Command Output \(stderr\):\n--(.*?)\n--\n@Ss', $dump, $m)) {
29+
'Command Output \(stdout\):\n--.*?\n--\n@Ss', $dump, $m)) {
3130
die("Failed to get data for $test\n");
3231
}
3332

34-
$err = $m[1];
35-
$stderr = store_log(preg_replace('/Report written to \S+/S', '', $err));
33+
$err = $m[0];
34+
$stderr = store_log(preg_replace('/^.*Report written to .*\n/Sm', '', $err));
3635
$func = null;
3736

3837
preg_match('/Report written to "(\S+)"/S', $err, $m);

0 commit comments

Comments
 (0)