This sounds like a file lock issue. It typically only happens on windows. As most karaf devs use a linux/unix variant we maybe overlooked this problem. Typically it happens when a process still runs that has this file open. So either we forgot to close the file in our code or maybe it is the pax exam problem I saw some time ago where pax exam continues with the next test before karaf is fully shut down. According to the ops4j jira this should not happen in current pax exam anymore but we saw a similar issue in itests in a project only some days ago. There ports were still open after a test finished.

Christian

On 08.11.2013 14:26, Satya Deep wrote:
Hi

I synced the latest code from https://svn.apache.org/repos/asf/karaf/trunk
today. I get the below error when I try to build:

Tests in error:
   testAutoStart(org.apache.karaf.main.MainStartTest): Unable to delete file:
C:\svn\svn.apache.org\karaf\main\target\test-classes\test-karaf-home\data\log\karaf.log
   testStopWithTimeout(org.apache.karaf.main.MainStartTest): Unable to delete
file:
C:\svn\svn.apache.org\karaf\main\target\test-classes\test-karaf-home\data\log\karaf.log

The build is done successfully if I skip the tests. This is a fresh setup so
I may be missing something. Please help.

Regards
Satya Deep



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Tests-in-error-when-building-from-trunk-tp4030235.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to