Remove unnecessary shell=True in subprocess calls

All calls was using shell=True, but there are no shell features used.
Also use tox instead of setup.py in install tempest.

Change-Id: I2eb35fb8899c528d4e141d3a447eac53ce5d1a39
This commit is contained in:
Sergey Skripnick 2015-11-23 18:43:17 +02:00
parent 74190370dc
commit 1f1e8fe5b3

View File

@ -74,8 +74,8 @@ class Rally(object):
def __init__(self, fake=False, force_new_db=False):
if not os.path.exists(DEPLOYMENT_FILE):
subprocess.call("rally deployment config > %s" % DEPLOYMENT_FILE,
shell=True)
subprocess.call(["rally", "deployment", "config"],
stdout=open(DEPLOYMENT_FILE, "w"))
# NOTE(sskripnick): we should change home dir to avoid races
# and do not touch any user files in ~/.rally