diff options
Diffstat (limited to 'obbench')
-rwxr-xr-x | obbench | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -190,6 +190,7 @@ class ObnamBenchmarker(cliapp.Application): self.write_benchmark_page(spec, obj) self.write_summary_page(spec, objs) self.copy_css_file(spec) + self.publish_html(spec) def read_results_files(self, spec): objs = [] @@ -355,6 +356,13 @@ class ObnamBenchmarker(cliapp.Application): filename = os.path.join(spec['html_dir'], 'benchmark.css') shutil.copy('benchmark.css', filename) + def publish_html(self, spec): + if 'publish_html' in spec: + self.logger.msg('Publishing HTML') + cliapp.runcmd( + ['sh', '-euc', spec['publish_html']], + cwd=spec['html_dir']) + class BenchmarkResult(object): |