[yocto] [qa-tools][PATCH 3/4] testopia_update: Add validation for empty sub parameters on setup
jose.perez.carranza at linux.intel.com
jose.perez.carranza at linux.intel.com
Tue Jul 4 15:06:01 PDT 2017
From: Jose Perez Carranza <jose.perez.carranza at linux.intel.com>
Add an error message for the cases when “setup” is selected and no sub
parameters are given.
Signed-off-by: Jose Perez Carranza <jose.perez.carranza at linux.intel.com>
---
testopia_update.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/testopia_update.py b/testopia_update.py
index 0015d69..8080256 100755
--- a/testopia_update.py
+++ b/testopia_update.py
@@ -72,7 +72,6 @@ def connect_to_testopia():
config = None
opts = Options()
- #testopia_config = ['url', 'username', 'password', 'store_location']
testopia_config = ['url', 'username', 'password']
if not args.config and os.path.exists(DEFAULT_CONFIG_FILE):
@@ -270,6 +269,9 @@ if __name__ == '__main__':
print(wikivars)
create_wiki(wikivars, wikivars_list)
+ else:
+ logger.error("Sub arguments --clone-templates or --create-wiki should be given")
+
sys.exit(0)
--
2.11.0
More information about the yocto
mailing list