[teiid-commits] teiid SVN: r1709 - trunk/test-integration/db/src/main/resources/ctc_tests.
teiid-commits at lists.jboss.org
teiid-commits at lists.jboss.org
Tue Jan 5 13:46:34 EST 2010
Author: vhalbert at redhat.com
Date: 2010-01-05 13:46:34 -0500 (Tue, 05 Jan 2010)
New Revision: 1709
Modified:
trunk/test-integration/db/src/main/resources/ctc_tests/ctc.xml
Log:
Teiid 781 - updates so the error flagged file will contain the query sets / scenarios that failed.
Modified: trunk/test-integration/db/src/main/resources/ctc_tests/ctc.xml
===================================================================
--- trunk/test-integration/db/src/main/resources/ctc_tests/ctc.xml 2010-01-05 17:56:52 UTC (rev 1708)
+++ trunk/test-integration/db/src/main/resources/ctc_tests/ctc.xml 2010-01-05 18:46:34 UTC (rev 1709)
@@ -40,7 +40,9 @@
<not>
<isset property="single"/>
</not>
- </condition>
+ </condition>
+
+ <delete file="${ERROR_FILE}"/>
</target>
@@ -100,19 +102,21 @@
</java>
- <antcall target="is.there.output" inheritall="true" >
- </antcall>
+ <antcall target="are.there.errors" inheritall="true" />
</target>
- <target name="is.there.output" >
- <loadproperties srcFile="${scenario.file}" />
+ <target name="are.there.errors" >
+ <!-- load the scenario file to get the queryset thats being run -->
+ <loadproperties srcFile="${scenario.file}" />
+
+ <!-- get the scenario name based on the scenario file, strip the suffix -->
<basename property="scenario.name" file="${scenario.file}"
suffix=".properties"/>
- <echo>Are there any files ${root_output}//${queryset.dir}/output/${scenario.name}</echo>
+ <echo>Are there any files ${root_output}/${queryset.dir}/output/${scenario.name}</echo>
<path id="output.dir.files">
<fileset dir="${root_output}/${queryset.dir}/output/${scenario.name}">
@@ -122,7 +126,6 @@
<condition property="has.output">
<resourcecount refid="output.dir.files" when="greater" count="0" />
-
</condition>
<echo>Is there output ${has.output}</echo>
@@ -156,9 +159,11 @@
<target name="touch.error.file"
if="error.exist">
- <echo>Touch to Flag Error at ${ERROR_FILE} </echo>
- <touch file="${ERROR_FILE}"/>
-
+ <echo>Flag Error - Query Set: ${queryset.dir} Scenario: ${scenario.name} </echo>
+
+ <concat destfile="${ERROR_FILE}" append="true">Query Set: ${queryset.dir} Scenario: ${scenario.name} </concat>
+
+
</target>
More information about the teiid-commits
mailing list