diff options
author | 2017-03-23 14:26:49 +0500 | |
---|---|---|
committer | 2017-03-23 19:06:53 +0500 | |
commit | c2bb13c460566a18e61a3c840bf12f7f717940c2 (patch) | |
tree | 392fa55316e3b86bea17c5d01001a4da3457096c /qtip/cli/commands/cmd_report.py | |
parent | 29df737b48ccf31f555d0e4c08a65e14ecb66331 (diff) |
Integrate cli, runner and reporter.
- Execute runner via a shell command
- Change format of qtip result directory to qtip-timestamp
- Add path option in reporter to match with runner
JIRA: QTIP-229
Change-Id: I7d8562fd7100b1f40cdc8d53b0daa6a06a55b495
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'qtip/cli/commands/cmd_report.py')
-rw-r--r-- | qtip/cli/commands/cmd_report.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qtip/cli/commands/cmd_report.py b/qtip/cli/commands/cmd_report.py index cb9c70b6..c9f31f4a 100644 --- a/qtip/cli/commands/cmd_report.py +++ b/qtip/cli/commands/cmd_report.py @@ -24,8 +24,9 @@ def cli(ctx): @cli.command('show') @click.argument('metric') +@click.option('-p', '--path', help='Path to result directory') @pass_context -def show(ctx, metric): +def show(ctx, metric, path): reporter = ConsoleReporter({}) - report = reporter.render(metric) + report = reporter.render(metric, path) click.echo(report) |