list-uitest: update pathes after rearrenging tests

also change regex expression suggested by M. Kaganski

Change-Id: I9a93d2ebe6f486fcbaa201a983ded2087446d823
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104889
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2020-10-27 15:41:46 +01:00
parent 9f2daed124
commit 749c84a7ea

View file

@ -38,7 +38,7 @@ def get_files_list(directory, extension):
return array_items return array_items
def linkFormat(name): def linkFormat(name):
bugId = re.search(r'\d{6}|\d{5}', name) bugId = re.search(r'\d{5,6}', name)
if bugId: if bugId:
return "[https://bugs.documentfoundation.org/show_bug.cgi?id={} {}]"\ return "[https://bugs.documentfoundation.org/show_bug.cgi?id={} {}]"\
.format(bugId.group(), name) .format(bugId.group(), name)
@ -49,12 +49,12 @@ def linkFormat(name):
def main(): def main():
uitest_ext = '.py' uitest_ext = '.py'
uitest_dirs = { uitest_dirs = {
'Writer' : ['../uitest/writer_tests/', '../writerperfect/qa/uitest/', '../sw/qa/uitest/'], 'Writer' : ['../writerperfect/qa/uitest/', '../sw/qa/uitest/'],
'Calc' : ['../uitest/calc_tests', '../sc/qa/uitest/'], 'Calc' : ['../sc/qa/uitest/'],
'Impress' : ['../uitest/impress_tests/', '../sd/qa/uitest/'], 'Impress' : ['../uitest/impress_tests/', '../sd/qa/uitest/'],
'Math': ['../uitest/math_tests/'], 'Math': ['../uitest/math_tests/'],
'Draw': [''], 'Demo': ['../uitest/demo_ui/'],
'Manual_tests': ['../uitest/manual_tests/']} 'Draw': ['']}
print('{{TopMenu}}') print('{{TopMenu}}')
print('{{Menu}}') print('{{Menu}}')