Skip to content

Commit

Permalink
For zerocracy#1232: Run testing part of update_heapdump.groovy just i…
Browse files Browse the repository at this point in the history
…n tests.
  • Loading branch information
paulodamaso committed Aug 5, 2018
1 parent 4e519eb commit 93624c5
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions src/main/groovy/com/zerocracy/stk/internal/update_heapdump.groovy
Expand Up @@ -32,21 +32,25 @@ def exec(Project project, XML xml) {
new Assume(project, xml).type('Ping hourly')
Farm farm = binding.variables.farm
if (new Props(farm).has('//testing')) {
Bucket bucket;
project.acq('test/bucket').withCloseable {
bucket = new FkBucket(
it.path(),
'dumpbucket'
)
}
Logger.info(this, 'Saving test heap')
project.acq('test').withCloseable {
new HeapDump(
bucket,
'',
it.path(),
'heap'
).save()
if (it.path().toString().contains('update_heapdump')) {
Bucket bucket;
project.acq('test/bucket').withCloseable {
bucket = new FkBucket(
it.path(),
'dumpbucket'
)
}
Logger.info(this, 'Saving test heap')
project.acq('test').withCloseable {
new HeapDump(
bucket,
'',
it.path(),
'heap'
).save()
}
}
}
} else {
try {
Expand Down

0 comments on commit 93624c5

Please sign in to comment.