diff options
author | Taseer <taseer94@gmail.com> | 2017-03-23 14:26:49 +0500 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-03-24 09:29:04 +0000 |
commit | 6a4c4e2dba5c565871aa7259978a6ad547c34be2 (patch) | |
tree | 4d777f65e5bbaca237367d0e93a06caf29fb9b8e /qtip/cli/commands/cmd_qpi.py | |
parent | f01644b80a940cf17300114db7593c66c6120b54 (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>
(cherry picked from commit c2bb13c460566a18e61a3c840bf12f7f717940c2)
Diffstat (limited to 'qtip/cli/commands/cmd_qpi.py')
-rw-r--r-- | qtip/cli/commands/cmd_qpi.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qtip/cli/commands/cmd_qpi.py b/qtip/cli/commands/cmd_qpi.py index 1f23211e..1e3671c5 100644 --- a/qtip/cli/commands/cmd_qpi.py +++ b/qtip/cli/commands/cmd_qpi.py @@ -9,6 +9,7 @@ import click +import os from qtip.cli import utils from qtip.cli.entry import Context @@ -44,6 +45,9 @@ def show(ctx, name): @cli.command('run', help='Run performance tests for the specified QPI') @click.argument('name') +@click.option('-p', '--path', help='Path to store results') @pass_context -def run(ctx, name): - pass +def run(ctx, name, path): + runner_path = path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir, + 'runner/runner.py') + os.system('python {0} -b all -d {1}'.format(runner_path, path)) |