Permalink
Browse files

Added shell escaping to test runner

  • Loading branch information...
1 parent 04f84c7 commit 91ffd3eb0de63f3350ea0877052eaa7de09ca18e Kasper Pedersen committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/run-tests.php
View
@@ -86,7 +86,7 @@
foreach ($components as $component) {
$component = 'ZendTest/' . basename(str_replace('_', '/', $component));
echo "$component:\n";
- system("$phpunit_bin $phpunit_opts $phpunit_coverage " . __DIR__ . '/' . $component, $c_result);
+ system("$phpunit_bin $phpunit_opts $phpunit_coverage " . escapeshellarg(__DIR__ . '/' . $component), $c_result);
echo "\n\n";
if ($c_result) {
$result = $c_result;

1 comment on commit 91ffd3e

Owner

kasperpedersen commented on 91ffd3e Sep 18, 2012

Had trouble running the tests as a parent directory had a space in it's name :)

Please sign in to comment.