mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +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.7 6.6 Fixes: WEBOSCI-62 Change-Id: If8e3ce657d86469b8a83a05146e6698b8c5452d3 Reviewed-by: Alex Bu <alex.bu@qt.io>
This commit is contained in:
parent
20596ba439
commit
c0b9c32fbc
|
|
@ -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