Fix convenience test name matching
It used to lookup the longest initial sequence that contained no slashes, so that eg: cd hphp/test ./run quick/SetM.php Would run all the quick tests
Esse commit está contido em:
+2
-4
@@ -168,12 +168,10 @@ function map_convenience_filename($file) {
|
||||
'facebook' => 'hphp/facebook/test',
|
||||
);
|
||||
|
||||
$m = null;
|
||||
if (!preg_match('/([^\/]*)/', $file, $m) ||
|
||||
!isset($mappage[$m[1]])) {
|
||||
if (!isset($mappage[$file])) {
|
||||
return $file;
|
||||
}
|
||||
return hphp_home().'/'.$mappage[$m[1]];
|
||||
return hphp_home().'/'.$mappage[$file];
|
||||
}
|
||||
|
||||
function find_tests($files) {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário