Skip to content

Commit ebddd0d

Browse files
committed
TeamCity: fix IgnoreFail option
Previously the PostgreSQL build was treated as successfully finished even if it had failing tests.
1 parent 88e66ab commit ebddd0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build-common/common-project.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<target name="common.run-tests"
100100
description="Run NUnit tests">
101101
<call target="common.find-nunit" unless="${property::exists('nunit.found')}" />
102-
<property name="common.run-tests.failonerror" value="${not property::exists(project::get-name() + '.IgnoreFail')}"/>
102+
<property name="common.run-tests.failonerror" value="${not property::exists(test.file + '.IgnoreFail')}"/>
103103
<exec program="${nunit-console}" failonerror="${common.run-tests.failonerror}">
104104
<arg line="${bin.dir}/${test.file}.dll /xml:${testresults.dir}/${test.file}.dll-results.xml /framework:${framework::get-target-framework()}" />
105105
</exec>

default.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<target name="test" depends="init build" description="Runs all NHibernate tests for the current framework" unless="${skip.tests}">
4747
<property name="testfiles.all" value="NHibernate.TestDatabaseSetup NHibernate.Test NHibernate.Test.VisualBasic" />
4848
<foreach item="String" in="${testfiles.all}" delim=" " property="test.file">
49-
<call target="common.run-database-tests" failonerror="false"/>
49+
<call target="common.run-database-tests"/>
5050
</foreach>
5151
</target>
5252

0 commit comments

Comments
 (0)