Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JBTM-1687] Ensure CI runs print out (to console) which tests failed #292

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions XTS/localjunit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@
</build>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-remote</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-remote</artifactId>
<version>${jboss-as.version}</version>
<scope>test</scope>
</dependency>
Expand Down Expand Up @@ -182,8 +182,8 @@
</build>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<version>${jboss-as.version}</version>
<scope>test</scope>
</dependency>
Expand Down Expand Up @@ -217,8 +217,8 @@
</build>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<version>${jboss-as.version}</version>
<scope>test</scope>
</dependency>
Expand Down
8 changes: 4 additions & 4 deletions rest-tx/webservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@
<id>arq-jbossas-managed</id>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -257,8 +257,8 @@
<id>arq-jbossas-remote</id>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-remote</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-remote</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
14 changes: 14 additions & 0 deletions scripts/hudson/narayana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,18 @@ cat << 'EOF' > $WORKSPACE/qa/dist/${NARAYANA_VERSION}/etc/log4j.xml
EOF
}

function qa_tests_list_failures {
echo "QA Test Suite Failures:"

for f in $WORKSPACE/qa/TEST-*; do
# pick out lines containing FAILED and print the previous line whose second word contains the test name
sed -n '/FAILED/{g;1!p;};h' $f | while read ln; do
echo $ln | cut -d' ' -f2
done
done

}

function qa_tests_once {
echo "QA Test Suite $@"
cd $WORKSPACE/qa
Expand Down Expand Up @@ -280,6 +292,8 @@ function qa_tests_once {
else
ant -f run-tests.xml $target $QA_PROFILE
ok=$?

[ $ok = 0 ] || qa_tests_list_failures
fi

# archive the jtsremote test output (use a name related to the orb that was used for the tests)
Expand Down
8 changes: 4 additions & 4 deletions txbridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@
</build>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<version>${jboss-as.version}</version>
<scope>test</scope>
<!-- exclude logmanager because an incompatible version is pulled in -->
Expand Down Expand Up @@ -399,8 +399,8 @@
</build>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<version>${jboss-as.version}</version>
<scope>test</scope>

Expand Down
8 changes: 4 additions & 4 deletions txframework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@
</activation>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-managed</artifactId>
<version>${jboss-as.version}</version>
<scope>test</scope>
</dependency>
Expand Down Expand Up @@ -216,8 +216,8 @@
</build>
<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-remote</artifactId>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-remote</artifactId>
<version>${jboss-as.version}</version>
<scope>test</scope>
</dependency>
Expand Down