com web/qa: Publish PFTT reports: list_builds.php pftt. php
| From: | Matt Ficken | Date: | Mon, 24 Mar 2014 20:38:17 +0000 |
| Subject: | com web/qa: Publish PFTT reports: list_builds.php pftt. php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-67271@lists.php.net to get a copy of this message | ||
Commit: 665fd8ef8cd0757624141b594f9bbfe13abe4ec7
Author: v-mafick@microsoft.com <v-mafick@microsoft.com> Mon, 24 Mar 2014 13:38:17
-0700
Parents: 52ca10670a06718cee3d44941934d47cd2f72ea8
Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=665fd8ef8cd0757624141b594f9bbfe13abe4ec7
Log:
Publish PFTT reports
Changed paths:
M list_builds.php
M pftt.php
Diff:
diff --git a/list_builds.php b/list_builds.php
index a525c8f..d84c406 100755
--- a/list_builds.php
+++ b/list_builds.php
@@ -30,6 +30,12 @@ var_dump($r);
/*
+$r = sort($r);
+var_dump($r);
+*/
+
+/*
+
$latest_revision = '';
$mtime = 0;
diff --git a/pftt.php b/pftt.php
index 933ee36..2a5ffea 100755
--- a/pftt.php
+++ b/pftt.php
@@ -19,7 +19,7 @@ define('BASE_REPORT_DIR',
dirname($_SERVER['SCRIPT_FILENAME'])."/reports/db/");
$branches = scandir(BASE_REPORT_DIR);
if ($branches!==FALSE) {
foreach ( $branches as $branch ) {
- if ($branch=="." or $branch=="..")
+ if ($branch=="." or $branch==".." or $branch==".svn")
continue;
if (is_dir(BASE_REPORT_DIR."/$branch")) {
$latest_revision = '';
@@ -28,13 +28,15 @@ if ($branches!==FALSE) {
foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) {
if ($revision=="." or $revision=="..")
continue;
- /*if (is_dir(BASE_REPORT_DIR."/$branch/$revision")) {
- $mtime = stat(BASE_REPORT_DIR."/$branch/$revision")[9];
+ if (is_dir(BASE_REPORT_DIR."/$branch/$revision")) {
+ $s = stat(BASE_REPORT_DIR."/$branch/$revision");
+ var_dump($s);
+ /*$mtime = stat(BASE_REPORT_DIR."/$branch/$revision")[9];
if ($mtime > $latest_revision_mtime) {
$latest_revision = $revision;
$latest_revision_mtime = $mtime;
- }
- }*/
+ }*/
+ }
}
?>