>>>>> Steinar Bang <[email protected]>:
> It would have been nice to be able to get the karaf.log from the pax
> exam test. But I don't know how to do that on travis.
I looked into redirecting karaf.log to the console, so that it would end
up in the console log in travis.
But it looks like I'm already routing the karaf output to the console:
1. The pax exam karaf config points to a new configuration file fetched
from the resource classpath
https://github.com/steinarb/ukelonn/blob/5755236cc036bc256348dc6d7b38ff2c95748a97/ukelonn.tests/src/test/java/no/priv/bang/ukelonn/tests/UkelonnServiceIntegrationTest.java#L75
2. The replacement file already includes Console in the
log4j2.rootLogger.appenderRefs
https://github.com/steinarb/ukelonn/blob/5755236cc036bc256348dc6d7b38ff2c95748a97/ukelonn.tests/src/test/resources/etc/org.ops4j.pax.logging.cfg#L28
Unfortunately the console output from the pax exam karaf start doesn't
say much:
[INFO] Running no.priv.bang.ukelonn.tests.UkelonnServiceIntegrationTest
[main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System
(Version: 4.10.0) created.
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - creating PaxExam
runner for class no.priv.bang.ukelonn.tests.UkelonnServiceIntegrationTest
[main] INFO org.ops4j.pax.exam.junit.impl.ProbeRunner - running test class
no.priv.bang.ukelonn.tests.UkelonnServiceIntegrationTest
[main] INFO org.ops4j.pax.exam.karaf.container.internal.KarafTestContainer -
Wait for test container to finish its initialization [ RelativeTimeout value =
720000 ]
[main] INFO org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient - Waiting
for remote bundle context.. on 21000 name: daf64a6b-f6c2-40b5-8c8b-4e02805b2f97
timout: [ RelativeTimeout value = 720000 ]
Aug 26, 2018 6:56:55 PM org.apache.karaf.main.Main launch
INFO: Installing and starting initial bundles
Aug 26, 2018 6:56:55 PM org.apache.karaf.main.Main launch
INFO: All initial bundles installed and set to start
Aug 26, 2018 6:56:55 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Trying to lock
/home/travis/build/steinarb/ukelonn/ukelonn.tests/target/exam/4c7b0be8-dd86-4cc1-ba6f-3106350b8507/lock
Aug 26, 2018 6:56:55 PM org.apache.karaf.main.lock.SimpleFileLock lock
INFO: Lock acquired
Aug 26, 2018 6:56:55 PM org.apache.karaf.main.Main$KarafLockCallback
lockAquired
INFO: Lock acquired. Setting startlevel to 100
No output has been received in the last 10m0s, this potentially indicates a
stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on:
https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated