diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-11-29 16:18:13 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-11-29 16:21:15 +0800 |
commit | 795221ce0cbd9daf23af9f3099e29c947bcad306 (patch) | |
tree | 8e443f916db57ba042cd10e61340b4a558358e14 /qtip/web/bench/utils.py | |
parent | f9a4031c4e8146c350065878b95cd40d81aa4fe7 (diff) |
Deprecate qtip/web in favor of AWX
We decided to develop it at the time AWX is not open sourced. Now AWX seems to
be a more promising solution then create the service from scratch.
Change-Id: I586ac7e582b2db57ad81f0ece7585ca2bf0dd416
JIRA: QTIP-287
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/web/bench/utils.py')
-rw-r--r-- | qtip/web/bench/utils.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/qtip/web/bench/utils.py b/qtip/web/bench/utils.py deleted file mode 100644 index aac388e0..00000000 --- a/qtip/web/bench/utils.py +++ /dev/null @@ -1,27 +0,0 @@ -############################################################################## -# Copyright (c) 2017 akhil.batra@research.iiit.ac.in and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -import os -from subprocess import Popen, PIPE, STDOUT -import shutil - - -def run(repo): - if os.path.exists(repo.name): - shutil.rmtree(repo.name) - os.mkdir(repo.name) - os.chdir(repo.name) - output = Popen(("git clone %s ." % repo.git_link).split(), stdout=PIPE, stderr=STDOUT) - for line in output.stdout: - yield line - output.wait() - output = Popen("ansible-playbook run.yml".split(), stdout=PIPE, stderr=STDOUT) - for line in output.stdout: - yield line - os.chdir("../") |