summaryrefslogtreecommitdiff
path: root/java/test-profiles
diff options
context:
space:
mode:
authorAlex Rudyy <orudyy@apache.org>2013-01-24 15:40:35 +0000
committerAlex Rudyy <orudyy@apache.org>2013-01-24 15:40:35 +0000
commitfd92af60987f4271ee99a1babab3fabcc984805e (patch)
treeafd016256745fc7778721d936efc330203f02011 /java/test-profiles
parentd7c13522f09922a14f3989a2a8efd1f504bca992 (diff)
downloadqpid-python-fd92af60987f4271ee99a1babab3fabcc984805e.tar.gz
QPID-4281: Fix setting of log4j configuration in system tests. While testing the fix, some tests were found to be failing on spawned profile due to config problems - also fixed these.
Applied patch from Philip Harvey <phil@philharveyonline.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1438053 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/test-profiles')
-rw-r--r--java/test-profiles/testprofile.defaults7
1 files changed, 6 insertions, 1 deletions
diff --git a/java/test-profiles/testprofile.defaults b/java/test-profiles/testprofile.defaults
index 47992b9334..e205de2a18 100644
--- a/java/test-profiles/testprofile.defaults
+++ b/java/test-profiles/testprofile.defaults
@@ -33,7 +33,12 @@ amqj.logging.level=${log}
amqj.server.logging.level=${log}
amqj.protocol.logging.level=${log}
root.logging.level=warn
-log4j.configuration=test-profiles/log4j-test.xml
+
+# System property log4j.configuration is used by log4j.
+# QpidBrokerTestCase uses log4j.configuration.file to construct a java.io.File, eg for log configuration of spawned brokers.
+log4j.configuration.file=${test.profiles}/log4j-test.xml
+log4j.configuration=file:///${log4j.configuration.file}
+
log4j.debug=false
# Note test-provider.properties also has variables of same name.