aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2022-11-02 22:29:30 +0100
committerRobert Löhning <robert.loehning@qt.io>2023-01-16 17:36:52 +0000
commit9ecc429683b66c2d6dcd096d9f7b40d17ebebe25 (patch)
tree56f5ee07655805c4410225b5e5a7dcffc47e8f59
parent9d5a63abe3a0e3c349c32fee8f3c3cf99e544413 (diff)
Squish: Run in experimental environment
This still does not separate the tests from each other, it only avoids messing up the user's main environment. Change-Id: I1785aff8d236bd5ee43fdece5db6e310bdc06c36 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
-rw-r--r--Tests/system/Readme.txt4
-rw-r--r--Tests/system/shared/utils.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Tests/system/Readme.txt b/Tests/system/Readme.txt
index a24616d3..294db642 100644
--- a/Tests/system/Readme.txt
+++ b/Tests/system/Readme.txt
@@ -8,8 +8,8 @@ To run these tests:
5. In "Test Suite Settings", select devenv.exe as AUT.
6. Run individual tests or the entire test suite.
-Please note: The tests will run in your normal working environment. Settings you made may influence
- the tests and vice versa.
+The tests will run in the experimental environment which you get when starting devenv.exe with
+parameters "/RootSuffix SquishTestInstance".
Some tests require the following environment variables to be set to the correct values:
SQUISH_VSTOOLS_VERSION: The expected version of Qt VS Tools
diff --git a/Tests/system/shared/utils.py b/Tests/system/shared/utils.py
index 19b00f2e..edb456c8 100644
--- a/Tests/system/shared/utils.py
+++ b/Tests/system/shared/utils.py
@@ -34,7 +34,7 @@ import subprocess
import globalnames
def startAppGetVersion():
- appContext = startApplication("devenv /LCID 1033")
+ appContext = startApplication("devenv /LCID 1033 /RootSuffix SquishTestInstance")
try:
vsDirectory = appContext.commandLine.strip('"').partition("\\Common7")[0]
programFilesDir = os.getenv("ProgramFiles(x86)")