mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-04 16:10:12 +00:00
ptest: skip non-existing tests
ctest might list tests that don't have executable, such as
QMLTESTs, that are run with qmltestrunner. Skip these tests.
Pick-to: 6.6
Fixes: WEBOSCI-62
Change-Id: If8e3ce657d86469b8a83a05146e6698b8c5452d3
Reviewed-by: Alex Bu <alex.bu@qt.io>
(cherry picked from commit c0b9c32fbc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d677c6e8e7
commit
a752aeab90
|
|
@ -73,9 +73,10 @@ fakeroot python do_create_ptest_list() {
|
|||
test_name = test.get('name')
|
||||
working_directory = next((prop['value'] for prop in test.get('properties', []) if prop['name'] == 'WORKING_DIRECTORY'), None)
|
||||
|
||||
if test_name and working_directory:
|
||||
test_executable = os.path.normpath(os.path.join(working_directory,test_name)).replace(builddir,ptest_path)
|
||||
file.write(f'{test_executable}\n')
|
||||
test_executable = os.path.normpath(os.path.join(working_directory,test_name))
|
||||
if test_executable.startswith(builddir) and os.path.isfile(test_executable):
|
||||
test_executable = test_executable.replace(builddir,ptest_path)
|
||||
file.write(f'{test_executable}\n')
|
||||
|
||||
file.close()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user