Skip to content

Commit 890e94a

Browse files
christophvwColinFinck
authored andcommitted
[TESTMAN] add more debug logging
1 parent 8f5ed9f commit 890e94a

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

www/www.reactos.org/testman/webservice/buildbot_aggregator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* Copyright 2012-2015 Kamil Hornicek (kamil.hornicek@reactos.org)
88
*/
99

10+
define("MY_LOGFILE", "/tmp/WineTest_Writer.log");
11+
1012
require_once("config.inc.php");
1113
require_once(ROOT_PATH . "../www.reactos.org_config/testman-connect.php");
1214
require_once("autoload.inc.php");
@@ -154,6 +156,10 @@
154156
{
155157
if (preg_match("#^Running Wine Test, Module: ([\S]+), Test: ([\S]+)#", $line, $matches))
156158
{
159+
// for debugging only
160+
$pos = ftell($fp);
161+
file_put_contents(MY_LOGFILE, date("Y-m-d H:i:s") . ": Testsuite, offset ('$matches[0]', offset: $pos)\n", FILE_APPEND);
162+
157163
// Get a Suite ID for this combination.
158164
$suite_id = $writer->getSuiteId($matches[1], $matches[2]);
159165
break;

www/www.reactos.org/testman/webservice/lib/WineTest_Writer.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* Copyright 2012-2013 Kamil Hornicek (kamil.hornicek@reactos.org)
88
*/
99

10-
define("MY_LOGFILE", "/tmp/WineTest_Writer.log");
11-
10+
if (!defined('MY_LOGFILE')) {
11+
define("MY_LOGFILE", "/tmp/WineTest_Writer.log");
12+
}
13+
1214
class WineTest_Writer
1315
{
1416
// Member Variables

0 commit comments

Comments
 (0)