[ticket/584] Check for file instead of directory

B3P-584
This commit is contained in:
Marc Alexander
2015-06-13 17:40:31 +02:00
parent ec68169445
commit 252a91231f

View File

@@ -92,7 +92,7 @@
<target name="test" depends="clean,composer,prepare-tests"> <target name="test" depends="clean,composer,prepare-tests">
<if> <if>
<available property="phpunit-available" file="phpbb/phpBB/vendor/bin/phpunit" type="dir" /> <available property="phpunit-available" file="phpbb/phpBB/vendor/bin/phpunit" type="file" />
<then> <then>
<exec dir="${phpbb-root}" <exec dir="${phpbb-root}"
command="phpBB/vendor/bin/phpunit command="phpBB/vendor/bin/phpunit
@@ -116,7 +116,7 @@
<target name="test-slow" depends="clean,composer"> <target name="test-slow" depends="clean,composer">
<if> <if>
<available property="phpunit-available" file="phpbb/phpBB/vendor/bin/phpunit" type="dir" /> <available property="phpunit-available" file="phpbb/phpBB/vendor/bin/phpunit" type="file" />
<then> <then>
<exec dir="${phpbb-root}" <exec dir="${phpbb-root}"
command="phpBB/vendor/bin/phpunit command="phpBB/vendor/bin/phpunit