aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-05-11 08:02:56 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-11 08:02:56 +0000
commitd8e9b38874db8ccf5d4d9f08c387f2112ed8cfae (patch)
tree9669ee01035f986c8ee5a12ba394c2666f092768
parent3f3f77828e1fa28e56a8cb91b125413763f6419c (diff)
parent9f89643b5c5ee41d35813fad09d46edf409cd027 (diff)
Merge "Implement setup/run command"
-rw-r--r--qtip/cli/commands/cmd_run.py3
-rw-r--r--qtip/cli/commands/cmd_setup.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/qtip/cli/commands/cmd_run.py b/qtip/cli/commands/cmd_run.py
index d1b96d4f..56d416ab 100644
--- a/qtip/cli/commands/cmd_run.py
+++ b/qtip/cli/commands/cmd_run.py
@@ -9,8 +9,9 @@
import click
+import os
@click.command('run', help='Run performance tests')
def cli():
- pass
+ os.system('ansible-playbook {}/run.yml'.format(os.getcwd()))
diff --git a/qtip/cli/commands/cmd_setup.py b/qtip/cli/commands/cmd_setup.py
index 586a4a72..ac434561 100644
--- a/qtip/cli/commands/cmd_setup.py
+++ b/qtip/cli/commands/cmd_setup.py
@@ -9,8 +9,9 @@
import click
+import os
@click.command('setup', help='Setup QTIP workspace')
def cli():
- pass
+ os.system('ansible-playbook {}/setup.yml'.format(os.getcwd()))