summaryrefslogtreecommitdiffstats
path: root/scripts
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-09 22:15:46 +0100
commit2147e148d19cf2f4caef08a1fa6b20f3f34ddbfe (patch)
tree59130798aadae304c969f2a1a38664df4f0c47ff /scripts
parent056ff02e980fbf8f879e026eb4e1192bc416174b (diff)
downloadpoky-2147e148d19cf2f4caef08a1fa6b20f3f34ddbfe.tar.gz
poky-2147e148d19cf2f4caef08a1fa6b20f3f34ddbfe.tar.bz2
poky-2147e148d19cf2f4caef08a1fa6b20f3f34ddbfe.zip
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: f28cfbdad40a69f0cc1a7e71d20260c9621e6194) 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>
Diffstat (limited to 'scripts')
-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):