summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>2019-04-04 16:48:35 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-25 15:01:21 +0100
commite450fa09a6c904ac837a05036bf2eab059e514d5 (patch)
treeb329fad94363c4988c7c304f606c4fb21541abc9
parent7999c7d556a58de7712fb0e37fd24e42dda914b8 (diff)
downloadpoky-e450fa09a6c904ac837a05036bf2eab059e514d5.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. (From OE-Core rev: 6eb041fd930a3731743cc715eb8d73b045cf8932) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
45 def _get_input(self, config): 45 def _get_input(self, config):
46 while True: 46 while True:
47 output = input('{} = '.format(config)) 47 output = input('{} = '.format(config))
48 if re.match('^[a-zA-Z0-9_-]+$', output): 48 if re.match('^[a-z0-9-.]+$', output):
49 break 49 break
50 print('Only alphanumeric and underscore/hyphen are allowed. Please try again') 50 print('Only lowercase alphanumeric, hyphen and dot are allowed. Please try again')
51 return output 51 return output
52 52
53 def _create_config(self): 53 def _create_config(self):