Merge branch 'wip-mdl-55379-fix2' of https://github.com/rajeshtaneja/moodle

This commit is contained in:
Andrew Nicols 2016-09-22 15:09:43 +08:00
commit a2b48e4127

View File

@ -65,7 +65,8 @@ function testing_cli_argument_path($moodlepath) {
$path = testing_cli_fix_directory_separator($path);
if (strpos($path, $cwd) === 0) {
$path = substr($path, strlen($cwd));
// Remove current working directory and directory separator.
$path = substr($path, strlen($cwd)+1);
}
return $path;