Commit 66b28c95 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Jenkins-mahara: run only one feature file (behat number fix)

parent 4eac3a18
......@@ -301,7 +301,7 @@ echo "\n";
if ($BEHATTESTNUMBER = trim(shell_exec("git diff-tree --no-commit-id --name-only -r HEAD | grep -c $BEHATTESTREGEX")) >= 1) {
echo "Patch includes a Behat test.\n";
if ($BEHATTESTNUMBER == 1) {
if (intval($BEHATTESTNUMBER) == 1) {
$BEHATTESTFEATURE = basename(trim(shell_exec("git diff-tree --no-commit-id --name-only -r HEAD | grep $BEHATTESTREGEX")));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment