Skip to content

Commit

Permalink
Making security test failure more verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Jul 19, 2016
1 parent 13ac1e6 commit a73b5c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion template/build/core/phing/tasks/tests.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,21 @@
</target>

<!-- Ensure Drupal doesn't have any modules requiring security updates. -->
<!-- Intentionally removed checkreturn="true" so that this does not cause failure. -->
<target name="tests:security-updates"
description="Check local Drupal installation for security updates.">
<exec dir="${docroot}"
command="! ${drush.cmd} -n ups --check-disabled --security-only 2>/dev/null | grep 'SECURITY UPDATE'"
checkreturn="true"
logoutput="true"
returnProperty="securityPass"
passthru="true"/>

<!-- Output message on failure. -->
<if>
<not><equals arg1="${securityPass}" arg2="0"/></not>
<then>
<echo>One or more of your dependency has an outstanding security update. Please apply update(s) immediately. Failing build.</echo>
</then>
</if>
</target>
</project>

0 comments on commit a73b5c1

Please sign in to comment.