Commit 4eac3a18 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

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

parent 996424e1
......@@ -302,7 +302,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) {
$BEHATTESTFEATURE = trim(shell_exec("git diff-tree --no-commit-id --name-only -r HEAD | grep $BEHATTESTREGEX"));
$BEHATTESTFEATURE = basename(trim(shell_exec("git diff-tree --no-commit-id --name-only -r HEAD | grep $BEHATTESTREGEX")));
}
}
else {
......
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