diff options
author | Taseer <taseer94@gmail.com> | 2017-03-23 14:26:49 +0500 |
---|---|---|
committer | Taseer <taseer94@gmail.com> | 2017-03-23 19:06:53 +0500 |
commit | c2bb13c460566a18e61a3c840bf12f7f717940c2 (patch) | |
tree | 392fa55316e3b86bea17c5d01001a4da3457096c /qtip/cli/commands/cmd_metric.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_metric.py')
-rw-r--r-- | qtip/cli/commands/cmd_metric.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/qtip/cli/commands/cmd_metric.py b/qtip/cli/commands/cmd_metric.py index 31b7b702..a2208444 100644 --- a/qtip/cli/commands/cmd_metric.py +++ b/qtip/cli/commands/cmd_metric.py @@ -8,6 +8,7 @@ ############################################################################## import click +import os from qtip.cli import utils from qtip.cli.entry import Context @@ -41,8 +42,11 @@ def show(ctx, name): click.echo(output) -@cli.command('run', help='Run tests to run Performance Metrics') +@cli.command('run', help='Run performance test') @click.argument('name') +@click.option('-p', '--path', help='Path to store results') @pass_context -def cmd_run(ctx, name): - pass +def run(ctx, name, path): + runner_path = os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir, + 'runner/runner.py') + os.system('python {0} -b {1} -d {2}'.format(runner_path, name, path)) |