aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt6/qt6-ptest.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt6/qt6-ptest.inc')
-rw-r--r--recipes-qt/qt6/qt6-ptest.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc
index 30833f6..573fc58 100644
--- a/recipes-qt/qt6/qt6-ptest.inc
+++ b/recipes-qt/qt6/qt6-ptest.inc
@@ -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()
}