Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
06122e4
)
MDL-49531 behat: Fix parallel runner with extraopts
author
Tony Levi
<tony.levi@netspot.com.au>
Mon, 16 Mar 2015 05:58:25 +0000
(16:28 +1030)
committer
Tony Levi
<tony.levi@netspot.com.au>
Mon, 16 Mar 2015 06:04:43 +0000
(16:34 +1030)
admin/tool/behat/cli/run.php
patch
|
blob
|
blame
|
history
diff --git
a/admin/tool/behat/cli/run.php
b/admin/tool/behat/cli/run.php
index
c83259f
..
92c393c
100644
(file)
--- a/
admin/tool/behat/cli/run.php
+++ b/
admin/tool/behat/cli/run.php
@@
-128,7
+128,7
@@
array_walk($unrecognised, function (&$v) {
$v = escapeshellarg($v);
}
});
$v = escapeshellarg($v);
}
});
-$extraopts =
implode(' ', $unrecognised)
;
+$extraopts =
$unrecognised
;
$tags = '';
$tags = '';
@@
-139,10
+139,10
@@
if ($options['profile']) {
exit(1);
}
$tags = $CFG->behat_config[$profile]['filters']['tags'];
exit(1);
}
$tags = $CFG->behat_config[$profile]['filters']['tags'];
- $extraopts
.
= '--profile=\'' . $profile . "'";
+ $extraopts
[]
= '--profile=\'' . $profile . "'";
} else if ($options['tags']) {
$tags = $options['tags'];
} else if ($options['tags']) {
$tags = $options['tags'];
- $extraopts
.
= '--tags="' . $tags . '"';
+ $extraopts
[]
= '--tags="' . $tags . '"';
}
// Update config file if tags defined.
}
// Update config file if tags defined.
@@
-166,6
+166,7
@@
if ($tags) {
}
$cmds = array();
}
$cmds = array();
+$extraopts = implode(' ', $extraopts);
echo "Running " . ($options['torun'] - $options['fromrun'] + 1) . " parallel behat sites:" . PHP_EOL;
for ($i = $options['fromrun']; $i <= $options['torun']; $i++) {
echo "Running " . ($options['torun'] - $options['fromrun'] + 1) . " parallel behat sites:" . PHP_EOL;
for ($i = $options['fromrun']; $i <= $options['torun']; $i++) {