Add cmd entry point for verify_tempest_config

This commit moves the verify_tempest_config script from the tools dir
to tempest.cmd and adds a pbr entry point for the script. This means
that the script will in effect be a packaged binary for tempest.

Partially implements bp config-verification

Change-Id: I75b9743a8117d55c6c445db05eb39404b5708624
This commit is contained in:
Matthew Treinish 2014-04-23 20:35:49 +00:00 committed by Matthew Treinish
parent f09717137a
commit f8b816af07
3 changed files with 6 additions and 2 deletions

View File

@ -17,6 +17,10 @@ classifier =
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
[entry_points]
console_scripts =
verify-tempest-config = tempest.cmd.verify_tempest_config:main
[build_sphinx]
all_files = 1
build-dir = doc/build

0
tempest/cmd/__init__.py Normal file
View File

View File

@ -312,7 +312,7 @@ def parse_args():
return args
def main(argv):
def main():
print('Running config verification...')
opts = parse_args()
update = opts.update
@ -343,4 +343,4 @@ def main(argv):
if __name__ == "__main__":
main(sys.argv)
main()