rename flatten-bundle to remove-placement
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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}
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user