Changeset 98563 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Feb 14, 2023 1:57:32 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/unittests/tdUnitTest1.py
r98076 r98563 385 385 self.sUnitTestsPathSrc = None; 386 386 387 # Array of environment variables with NAME=VAL entries 388 # to be applied for testcases. 389 # 390 # This is also needed for testcases which are being executed remotely. 391 self.asEnv = []; 387 ## Remote environment changes. 388 self.dRemoteEnvChg = {}; 392 389 393 390 # The destination directory our unit tests live when being … … 970 967 def _envSet(self, sName, sValue): 971 968 if self.isRemoteMode(): 972 # For remote execution we cache the environment block and pass it 973 # right when the process execution happens. 974 self.asEnv.append([ sName, sValue ]); 969 self.dRemoteEnvChg[sName] = sValue; 975 970 else: 976 971 os.environ[sName] = sValue; … … 1067 1062 1068 1063 self._envSet('IPRT_TEST_OMIT_TOP_TEST', '1'); 1069 self._envSet('IPRT_TEST_FILE', sXmlFile); 1064 self._envSet('IPRT_TEST_FILE', sXmlFile); ## @todo skip for remote. Makes _no_ sense. 1070 1065 1071 1066 if self._wrapPathExists(sXmlFile): … … 1091 1086 if not self.fDryRun: 1092 1087 if fCopyToRemote: 1088 asRemoteEnvChg = ['%s=%s' % (sKey, self.dRemoteEnvChg[sKey]) for sKey in self.dRemoteEnvChg]; 1093 1089 fRc = self.txsRunTest(self.oTxsSession, sName, cMsTimeout = 30 * 60 * 1000, sExecName = asArgs[0], 1094 asArgs = asArgs, asAddEnv = self.asEnv, fCheckSessionStatus = True);1090 asArgs = asArgs, asAddEnv = asRemoteEnvChg, fCheckSessionStatus = True); 1095 1091 if fRc: 1096 1092 iRc = 0;
Note:
See TracChangeset
for help on using the changeset viewer.