diff options
author | Christian Stenger <christian.stenger@qt.io> | 2023-02-01 14:42:24 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2023-02-01 14:42:05 +0000 |
commit | 476f67cce5797bd9639c3bc3e29c332af64557c0 (patch) | |
tree | b2093da37c891b21db362e0c03985f4f7b91f989 | |
parent | d8b5f32e5aff3601492106c1515ca3987e48950d (diff) | |
download | qt-creator-476f67cce5797bd9639c3bc3e29c332af64557c0.tar.gz |
SquishTests: Fix default settings test
Depending on the presence of the llvm that had been used when building
QC we need to expect its clang.
Use special environment variable to be able to do this correctly.
Change-Id: I2497bbd96483f37aa90842d7fffa5d0a8103ff45
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
-rw-r--r-- | tests/system/suite_general/tst_default_settings/test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/system/suite_general/tst_default_settings/test.py b/tests/system/suite_general/tst_default_settings/test.py index c8814d8eef..ebb8ef0dd4 100644 --- a/tests/system/suite_general/tst_default_settings/test.py +++ b/tests/system/suite_general/tst_default_settings/test.py @@ -31,6 +31,13 @@ def __checkKits__(): mouseClick(waitForObjectItem(":Options_QListView", "Kits")) # check compilers expectedCompilers = __getExpectedCompilers__() + llvmForBuild = os.getenv("SYSTEST_LLVM_FROM_BUILD", None) + if llvmForBuild is not None: + internalClangExe = os.path.join(llvmForBuild, "bin", "clang") + if platform.system() in ("Microsoft", "Windows"): + internalClangExe.append(".exe") + if os.path.exists(internalClangExe): + expectedCompilers.append(internalClangExe) foundCompilers = [] foundCompilerNames = [] clickOnTab(":Options.qt_tabwidget_tabbar_QTabBar", "Compilers") |