mirror of
https://git.yoctoproject.org/poky
synced 2026-03-02 05:19:40 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
056ff02e98
commit
2147e148d1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user