Changeset 103380 in vbox for trunk/src/VBox/ValidationKit/testdriver
- Timestamp:
- Feb 15, 2024 10:31:06 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r103076 r103380 1117 1117 return self.fImportedVBoxApi; 1118 1118 1119 def _printEnv(self, dEnv = os.environ, fRaw = False): 1120 """ 1121 Prints the given environment block to log2. 1122 1123 Uses the default environment block if not specified explicitly. 1124 Removes any control characters found to not mess up the screen output. 1125 """ 1126 for sKey, sVal in sorted(dEnv.items()): 1127 reporter.log2('%s=%s' % (sKey, sVal if fRaw else re.sub(r'[\x00-\x1f]', '', sVal))); 1128 1119 1129 def _startVBoxSVC(self): # pylint: disable=too-many-statements 1120 1130 """ Starts VBoxSVC. """ … … 1135 1145 1136 1146 reporter.log2('VBoxSVC environment:'); 1137 for sKey, sVal in sorted(os.environ.items()): 1138 reporter.log2('%s=%s' % (sKey, sVal)); 1147 self._printEnv(); 1139 1148 1140 1149 # Always leave a pid file behind so we can kill it during cleanup-before. … … 1387 1396 1388 1397 reporter.log2('Self environment:'); 1389 for sKey, sVal in sorted(os.environ.items()): 1390 reporter.log2('%s=%s' % (sKey, sVal)); 1398 self._printEnv(); 1391 1399 1392 1400 # Hack the sys.path + environment so the vboxapi can be found.
Note:
See TracChangeset
for help on using the changeset viewer.