This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
See URL for an example. It seems that mobility/project/test/build-qa-functional.xml#prepare-wtk modifies the content of the build. This is unacceptable for a test. You should instead find some way to make the runtime code optionally look for emulators in a different directory, and pass this directory in from the test.
I don't see anything wrong in this behavior of tests. We do our best to create a enviroment that mimics real world. When you *install* a build with mobility then there will be the mobility8/emulators-inst/wtk22_[linux|win].zip During the first start of the IDE the wtk.zip is unzipped to user's directory. The platform is also registered to be available in IDE. closing as INVALID.
I have to say I really disagree with this behavior. Anything present in the build installation should come from a proper NBM, and tests should never modify the contents of the build. The concrete problem I have noticed so far is that golden file generation is messed up by this (i.e. the result varies depending on whether mobility tests were run or not), which I can work around but would prefer a clean fix: Checking in nbbuild/build.xml; /shared/data/ccvs/repository/nbbuild/build.xml,v <-- build.xml new revision: 1.820; previous revision: 1.819 done Packaging of IDE ZIP files from builders is quite possibly broken by this as well, but I have not investigated so far.
I fixed it by moving tests to the end of build cycle: http://nbbuild.netbeans.org/source/browse/nbbuild/hudson/trunk?r1=1.48&r2=1.49
I don't think moving tests to the end of the cycle will really change anything, except to make any resulting problems less deterministic, since the installed file will be left in place for the next incremental build, in case this one passes. One workaround would be to explicitly delete matching files right after running tests; either (1) the build fails before getting to tests, (2) the tests run and the file is deleted, or (3) the build aborts during the tests, in which case the file is left behind but the next build will be a clean build anyway.
I have put in the workaround of explicitly deleting these files after tests complete.
Fixed - wtk is removed after tests finishes. /cvs/mobility/project/test/build-qa-functional.xml,v <-- build-qa-functional.xml new revision: 1.5; previous revision: 1.4 /cvs/nbbuild/hudson/trunk,v <-- trunk new revision: 1.59; previous revision: 1.58
x
OK. BTW I still wanted to delete testtools/ so resurrecting that part of the line you deleted in the trunk script. (trunk 1.60)
OK.