summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/update/templates
diff options
context:
space:
mode:
authorMatthewLi <lijun_1203@126.com>2017-07-14 00:30:50 -0400
committerMatthewLi <lijun_1203@126.com>2017-07-14 02:32:56 -0400
commit6fefa7cd6b8631aea64ef7617c759bd89d39b282 (patch)
tree315c9561fd8ccffaaab76c792262221c8ccad201 /utils/test/testapi/update/templates
parentcedeabdbbb405627ce536ae63ea474467b3ba223 (diff)
testapi: bugfix of tox
error log https://gerrit.opnfv.org/gerrit/#/c/37053/ https://build.opnfv.org/ci/job/testapi-verify-master/220/console Change-Id: Id278edad06c2852c662392d75fd3cf4041b03451 Signed-off-by: MatthewLi <lijun_1203@126.com>
Diffstat (limited to 'utils/test/testapi/update/templates')
-rw-r--r--utils/test/testapi/update/templates/backup_mongodb.py1
-rw-r--r--utils/test/testapi/update/templates/update_mongodb.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/utils/test/testapi/update/templates/backup_mongodb.py b/utils/test/testapi/update/templates/backup_mongodb.py
index 7e0dd5545..9c2437764 100644
--- a/utils/test/testapi/update/templates/backup_mongodb.py
+++ b/utils/test/testapi/update/templates/backup_mongodb.py
@@ -40,5 +40,6 @@ def backup(args):
cmd = ['mongodump', '-o', '%s' % out]
execute(cmd, args)
+
if __name__ == '__main__':
main(backup, parser)
diff --git a/utils/test/testapi/update/templates/update_mongodb.py b/utils/test/testapi/update/templates/update_mongodb.py
index ba4334aa3..f75959281 100644
--- a/utils/test/testapi/update/templates/update_mongodb.py
+++ b/utils/test/testapi/update/templates/update_mongodb.py
@@ -85,5 +85,6 @@ def update(args):
rename_fields(fields_old2New)
rename_collections(collections_old2New)
+
if __name__ == '__main__':
main(update, parser)