Run repo-authoritative tests in repo-authoritative mode

Because its the right thing to do. Even if some tests fail.
Esse commit está contido em:
mwilliams
2013-06-06 07:56:14 -07:00
commit de sgolemon
commit adee83bab7
7 arquivos alterados com 7 adições e 7 exclusões
+2 -2
Ver Arquivo
@@ -2,8 +2,8 @@ object(foo)#1 (2) {
["test":"foo":private]=>
int(3)
["a"]=>
object(Closure$foo$x$df6991b3d631d589b39d5dc9f35d5aa2$0)#2 (1) {
["a":"Closure$foo$x$df6991b3d631d589b39d5dc9f35d5aa2$0":private]=>
object(Closure$foo$x$%s$0)#2 (1) {
["a":"Closure$foo$x$%s$0":private]=>
*RECURSION*
}
}
+5 -5
Ver Arquivo
@@ -288,8 +288,8 @@ class Status {
public static function fail($test) {
array_push(self::$results, array(
'name' => $test,
'status' => 'failed',
'name' => $test,
'status' => 'failed',
'details' => @file_get_contents("$test.diff")
));
switch (self::$mode) {
@@ -374,7 +374,7 @@ function run_test($options, $test) {
unlink("$test.repo/hhvm.hhbc");
$hphp = hphp_cmd($options, $test);
$output .= shell_exec("$hphp 2>&1");
$opts .= " -v Repo.Authoritative=true -v Repo.Central.Path=$test.repo/hhvm.hhbc";
$hhvm .= " -v Repo.Authoritative=true -v Repo.Central.Path=$test.repo/hhvm.hhbc";
}
}
@@ -393,12 +393,12 @@ function run_test($options, $test) {
$output .= stream_get_contents($pipes[1]);
file_put_contents("$test.out", $output);
fclose($pipes[1]);
// hhvm redirects errors to stdout, so anything on stderr is really bad
$stderr = stream_get_contents($pipes[2]);
if ($stderr) {
file_put_contents(
"$test.diff",
"$test.diff",
"Test failed because the process wrote on stderr:\n$stderr"
);
return false;