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:
mwilliams
2013-07-19 07:19:25 -07:00
commit de Sara Golemon
commit da5b2a2be2
+2 -4
Ver Arquivo
@@ -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) {