Skip to content

Enable persistence for tests and point it at the target folder#239

Merged
asfgit merged 1 commit intoapache:masterfrom
neykov:osgi/test-persistence
Jul 7, 2016
Merged

Enable persistence for tests and point it at the target folder#239
asfgit merged 1 commit intoapache:masterfrom
neykov:osgi/test-persistence

Conversation

@neykov
Copy link
Copy Markdown
Member

@neykov neykov commented Jul 7, 2016

No description provided.

@neykov neykov force-pushed the osgi/test-persistence branch from 4d120cd to 9c8a51c Compare July 7, 2016 15:20
@neykov neykov force-pushed the osgi/test-persistence branch from 9c8a51c to 3b6fb3e Compare July 7, 2016 15:20
junitBundles()
junitBundles(),
editConfigurationFilePut("etc/org.apache.brooklyn.osgilauncher.cfg", "persistMode", "AUTO"),
editConfigurationFilePut("etc/org.apache.brooklyn.osgilauncher.cfg", "persistenceDir", new File("target/paxexam/persistence/" + Identifiers.makeRandomId(6) + "/").getAbsolutePath()),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I presume target will get deleted at some point (e.g. on the next clean build), especially when run on local machines? So no need for tearDown to delete the folder?

With that assumption, very happy to merge. Doing so now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my thinking, yes. Isn't worth making it more complex just to do the cleanup.

@asfgit asfgit merged commit 3b6fb3e into apache:master Jul 7, 2016
asfgit pushed a commit that referenced this pull request Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants