Permalink
Browse files

TeamCity: fix IgnoreFail option

Previously the PostgreSQL build was treated as successfully finished even if it had failing tests.
  • Loading branch information...
1 parent 88e66ab commit ebddd0d9af69465fcb0c061657180361e434bf91 @hazzik hazzik committed Aug 5, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 build-common/common-project.xml
  2. +1 −1 default.build
@@ -99,7 +99,7 @@
<target name="common.run-tests"
description="Run NUnit tests">
<call target="common.find-nunit" unless="${property::exists('nunit.found')}" />
- <property name="common.run-tests.failonerror" value="${not property::exists(project::get-name() + '.IgnoreFail')}"/>
+ <property name="common.run-tests.failonerror" value="${not property::exists(test.file + '.IgnoreFail')}"/>
<exec program="${nunit-console}" failonerror="${common.run-tests.failonerror}">
<arg line="${bin.dir}/${test.file}.dll /xml:${testresults.dir}/${test.file}.dll-results.xml /framework:${framework::get-target-framework()}" />
</exec>
View
@@ -46,7 +46,7 @@
<target name="test" depends="init build" description="Runs all NHibernate tests for the current framework" unless="${skip.tests}">
<property name="testfiles.all" value="NHibernate.TestDatabaseSetup NHibernate.Test NHibernate.Test.VisualBasic" />
<foreach item="String" in="${testfiles.all}" delim=" " property="test.file">
- <call target="common.run-database-tests" failonerror="false"/>
+ <call target="common.run-database-tests"/>
</foreach>
</target>

0 comments on commit ebddd0d

Please sign in to comment.