]> code.ossystems Code Review - openembedded-core.git/commitdiff
resulttool/manualexecution: Standardize input check
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>
Thu, 4 Apr 2019 08:48:35 +0000 (16:48 +0800)
committerArmin Kuster <akuster808@gmail.com>
Sat, 6 Apr 2019 11:17:07 +0000 (16:47 +0530)
Current input checking does not match the standard input practiced
by QA team. Change the input checking to match the standard
input practiced by the QA team.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/resulttool/manualexecution.py

index 6487cd9bff614e01f31f73b245a43285a9fd7c25..8ce79038928342f6d0bd333f838b23f0e2218859 100755 (executable)
@@ -45,9 +45,9 @@ class ManualTestRunner(object):
     def _get_input(self, config):
         while True:
             output = input('{} = '.format(config))
-            if re.match('^[a-zA-Z0-9_-]+$', output):
+            if re.match('^[a-z0-9-.]+$', output):
                 break
-            print('Only alphanumeric and underscore/hyphen are allowed. Please try again')
+            print('Only lowercase alphanumeric, hyphen and dot are allowed. Please try again')
         return output
 
     def _create_config(self):