rename flatten-bundle to remove-placement

This commit is contained in:
Chris MacNaughton
2018-10-10 11:34:31 +02:00
parent 89527526f5
commit 362ce7bac5
3 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ setup(
'functest-test = zaza.charm_lifecycle.test:main',
'current-apps = zaza.model:main',
'tempest-config = zaza.tempest_config:main',
'flatten-bundle = zaza.utilities.bundle:main',
'remove-placement = zaza.utilities.bundle:main',
]
},
license='Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0',
+2 -2
View File
@@ -52,9 +52,9 @@ commands =
{envdir}/bin/python3 setup.py install
sudo su {env:USER} -c 'source {envdir}/bin/activate && functest-run-suite --keep-model'
[testenv:flatten]
[testenv:remove-placement]
basepython = python3
deps = -r{toxinidir}/requirements.txt
commands =
{envdir}/bin/python3 setup.py install
flatten-bundle {posargs}
remove-placement {posargs}
+2 -4
View File
@@ -51,7 +51,7 @@ def parse_args(args):
"""
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input',
help='Bundle to flatten',
help='Bundle to remove placement from',
required=True)
parser.add_argument('-o', '--output',
help='Where to output',
@@ -62,9 +62,7 @@ def parse_args(args):
def main():
"""Run the configuration defined by the command line args.
Run the configuration defined by the command line args or if none were
provided read the configuration functions from the charms tests.yaml
config file
Remove machine placement as specified in the command line args
"""
args = parse_args(sys.argv[1:])
with open(args.input, 'r') as file: