aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>2019-04-04 16:48:35 +0800
committerArmin Kuster <akuster808@gmail.com>2019-04-06 16:47:07 +0530
commit6eb041fd930a3731743cc715eb8d73b045cf8932 (patch)
treec48ac9ec6c92e49b18e168c0218f4e2bc054eb89
parent08c5471c5abd95616af8df862e96072d022a6f42 (diff)
downloadopenembedded-core-contrib-6eb041fd930a3731743cc715eb8d73b045cf8932.tar.gz
resulttool/manualexecution: Standardize input check
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>
-rwxr-xr-xscripts/lib/resulttool/manualexecution.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/resulttool/manualexecution.py b/scripts/lib/resulttool/manualexecution.py
index 6487cd9bff..8ce7903892 100755
--- a/scripts/lib/resulttool/manualexecution.py
+++ b/scripts/lib/resulttool/manualexecution.py
@@ -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):