Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 813bd06

Browse files
author
Charles Ma
committed
STYLE: refs #301 Fixed dashbaord (CdashComponent.php)
1 parent b39bdd9 commit 813bd06

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

core/controllers/components/CdashComponent.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,31 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
4343
throw new Zend_Exception("The status should be passed or failed");
4444
}
4545
}
46-
$xml = '<?xml version="1.0" encoding="UTF-8"?>
47-
<Site BuildName="'.$buildName.'"
48-
BuildStamp="'.date('Ymd').'-'.((int)date('G')*60 + (int)date('i')).'-'.$buildType.'"
49-
Name="'.$machineName.'"
50-
Generator=""
51-
CompilerName=""
52-
OSName=""
53-
Hostname=""
54-
OSRelease=""
55-
OSVersion=""
56-
OSPlatform=""
57-
Is64Bits=""
58-
VendorString=""
59-
VendorID=""
60-
FamilyID=""
61-
ModelID=""
62-
ProcessorCacheSize=""
63-
NumberOfLogicalCPU=""
64-
NumberOfPhysicalCPU=""
65-
TotalVirtualMemory=""
66-
TotalPhysicalMemory=""
67-
LogicalProcessorsPerPhysical=""
68-
ProcessorClockFrequency=""
69-
>
70-
<Testing>
46+
$xml = '<?xml version="1.0" encoding="UTF-8"?>';
47+
$xml .= ' <Site BuildName="'.$buildName.'"';
48+
$xml .= ' BuildStamp="'.date('Ymd').'-'.((int)date('G') * 60 + (int)date('i')).'-'.$buildType.'"';
49+
$xml .= ' Name="'.$machineName.'"';
50+
$xml .= ' Generator=""';
51+
$xml .= ' CompilerName=""';
52+
$xml .= ' OSName=""';
53+
$xml .= ' Hostname=""';
54+
$xml .= ' OSRelease=""';
55+
$xml .= ' OSVersion=""';
56+
$xml .= ' OSPlatform=""';
57+
$xml .= ' Is64Bits=""';
58+
$xml .= ' VendorString=""';
59+
$xml .= ' VendorID=""';
60+
$xml .= ' FamilyID=""';
61+
$xml .= ' ModelID=""';
62+
$xml .= ' ProcessorCacheSize=""';
63+
$xml .= ' NumberOfLogicalCPU=""';
64+
$xml .= ' NumberOfPhysicalCPU=""';
65+
$xml .= ' TotalVirtualMemory=""';
66+
$xml .= ' TotalPhysicalMemory=""';
67+
$xml .= ' LogicalProcessorsPerPhysical=""';
68+
$xml .= ' ProcessorClockFrequency=""';
69+
$xml .= ' >';
70+
$xml .= ' <Testing>
7171
<StartDateTime>'.date('M m H:i T').'</StartDateTime>
7272
<StartTestTime>'.time().'</StartTestTime>
7373
<TestList>
@@ -77,7 +77,7 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
7777
$xml .= '<Test>'.$name.'</Test>
7878
';
7979
}
80-
$xml .='</TestList>
80+
$xml .= '</TestList>
8181
';
8282
foreach($tests as $name => $test)
8383
{
@@ -99,7 +99,7 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
9999
</Results>
100100
</Test>';
101101
}
102-
$xml .='
102+
$xml .= '
103103
<EndDateTime>'.date('M m H:i T').'</EndDateTime>
104104
<EndTestTime>'.time().'</EndTestTime>
105105
<ElapsedMinutes>0</ElapsedMinutes></Testing>
@@ -120,7 +120,7 @@ public function submitToCdash($serverUrl, $projectName, $tests, $machineName = "
120120
throw new Zend_Exception("Problem with ".$url.", ".$php_errormsg);
121121
}
122122
$response = stream_get_contents($fp);
123-
if ($response === false)
123+
if($response === false)
124124
{
125125
throw new Zend_Exception("Problem reading data from ".$url.", ".$php_errormsg);
126126
}

0 commit comments

Comments
 (0)