Thanks a bunch for the support!!
This surely seems to have our problem solved.
Gábor

-----Original Message-----
From: tonit....@googlemail.com [mailto:tonit....@googlemail.com] On Behalf Of 
Toni Menzel
Sent: Friday, November 05, 2010 12:17 PM
To: Bartosz Kowalewski
Cc: Gabor Komaromi; general@lists.ops4j.org
Subject: Re: PAX lock problem - 2 projects to be tested paralell

Yeah, and for concurrent runs (like its very likely on a CI Machine) you may 
want to add some unique suffix.

On Fri, Nov 5, 2010 at 12:12 PM, Bartosz Kowalewski 
<kowalewski.bart...@gmail.com> wrote:
> If you have many Pax Exam-based projects and, what is more, want to 
> have more control over Pax Exam temp storage, you may want to have 
> working dir per project, i.e.
> PaxRunnerOptions.workingDirectory(System.getProperty("user.dir") +
> "/paxrunner/")
>
> Bartek
>
> 2010/11/5 Toni Menzel <t...@okidokiteam.com>:
>> Yes, change the workingFolder to something different or use
>> File.tmpDir() stuff to get random + unique folders.
>> PaxRunnerOptions.workingDirectory(..)
>>
>> Toni
>>
>> On Fri, Nov 5, 2010 at 10:54 AM, Gabor Komaromi <gabor_komar...@epam.com> 
>> wrote:
>>>
>>>
>>>     Dear Community!
>>>
>>>
>>>
>>>     We faced a problem during the execution of OSGi test cases for 2 
>>> separate projects at the same time.
>>>
>>>   Here is the scenario, we're using Pax 1.2.0, driven with Ant:
>>>
>>>
>>>
>>> In two command windows:
>>>
>>>     //serial running
>>>
>>>     Window1>project1\osgi\tests>ant run-tests
>>>
>>>         Wait for it to complete
>>>
>>>     Window2> project2\osgi\tests >ant run-tests
>>>
>>>         Wait for it to complete
>>>
>>>
>>>
>>>     //parallel running
>>>
>>>     Window1> project1\osgi\tests >ant run-tests
>>>
>>>         While window1 is still running
>>>
>>>     Window2> project2\osgi\tests >ant run-tests
>>>
>>>
>>>
>>> Parallel Result:
>>>
>>>     Window2 tests fail immediately.  Stray java.exe process will 
>>> block further tests.
>>>
>>>     Window1 tests are hung!  Stray java.exe process will block 
>>> further tests.
>>>
>>>
>>>
>>>
>>>
>>>     Can someone confirm that Pax (1.2.0) can be modified in a way to 
>>> support parallel test runs?
>>>
>>>
>>>
>>>     This would be quite a parting issue in our discretion for using Pax.
>>>
>>>     In other words, we need a solution for this like hell.
>>>
>>>
>>>
>>>     Any ideas, comments are warmly welcomed!
>>>
>>>
>>>
>>>     Thanks in advance,
>>>
>>>     Gábor
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> P.S.: for errlog diggers, we received this rte:
>>>
>>> java.lang.RuntimeException: There might be another instance of Pax 
>>> Exam running. Have a look at C:\Documents and 
>>> Settings\buildprop\Local 
>>> Settings\Temp\paxexam_runner_buildprop\paxexam.lock
>>>
>>>                 at
>>> org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.sta
>>> rt(PaxRunnerTestContainer.java:272)
>>>
>>>                 at
>>> org.ops4j.pax.exam.junit.internal.JUnit4TestMethod.invoke(JUnit4Test
>>> Method.java:142)
>>>
>>>                 at
>>> org.ops4j.pax.exam.junit.internal.JUnit4MethodRoadie.runBeforesThenT
>>> estThenAfters(JUnit4MethodRoadie.java:60)
>>>
>>>                 at
>>> org.ops4j.pax.exam.junit.JUnit4TestRunner.invokeTestMethod(JUnit4Tes
>>> tRunner.java:247)
>>>
>>>                 at
>>> org.ops4j.pax.exam.junit.JUnit4TestRunner.runMethods(JUnit4TestRunne
>>> r.java:197)
>>>
>>>                 at
>>> org.ops4j.pax.exam.junit.JUnit4TestRunner$2.run(JUnit4TestRunner.jav
>>> a:187)
>>>
>>>                 at
>>> org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:
>>> 183)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Best Regards,
>>> Gábor Komáromi
>>> Software Engineer
>>>
>>> EPAM Systems
>>> Szeged office, Hungary
>>> GMT+1 (Standard) / GMT+2 (Daylight)
>>>
>>> EPAM Internal ext.:  XXXXX
>>> Office phone:        +36 (1) 327-74-XX Office fax:            +36 
>>> (1) 577-23-84 Mobile phone:       +36 (30) 430-9572
>>> E-mail:                 gabor_komar...@epam.com
>>>
>>> http://www.epam.com
>>>
>>> CONFIDENTIALITY CAUTION AND DISCLAIMER This message is intended only 
>>> for the use of the individual(s) or
>>> entity(ies) to which it is addressed and contains information that 
>>> is legally privileged and confidential. If you are not the intended 
>>> recipient, or the person responsible for delivering the message to 
>>> the intended recipient, you are hereby notified that any 
>>> dissemination, distribution or copying of this communication is 
>>> strictly prohibited. All unintended recipients are obliged to delete 
>>> this message and destroy any printed copies.
>>>
>>>
>>>
>>> _______________________________________________
>>> general mailing list
>>> general@lists.ops4j.org
>>> http://lists.ops4j.org/mailman/listinfo/general
>>>
>>>
>>
>>
>>
>> --
>> Toni Menzel || http://okidokiteam.com
>>
>> _______________________________________________
>> general mailing list
>> general@lists.ops4j.org
>> http://lists.ops4j.org/mailman/listinfo/general
>>
>



--
Toni Menzel || http://okidokiteam.com

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to