- Timestamp:
- Oct 4, 2020 11:36:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r86299 r86438 460 460 self.sDesignation = os.environ.get('TEST_BUILD_DESIGNATION', 'XXXXX'); 461 461 ## @todo Much more work is required here. 462 463 # Determine the build type. 464 (iExit, sStdOut, sStdErr) = utils.processOutputUnchecked([os.path.join(self.sInstallPath, 465 'VBoxManage' + base.exeSuff()), 466 '--dump-build-type']); 467 sStdOut = sStdOut.strip(); 468 if iExit == 0 and sStdOut in ('release', 'debug', 'strict', 'dbgopt', 'asan'): 469 self.sType = sStdOut; 470 reporter.log2('build type: %s' % (self.sType)); 471 else: 472 reporter.log2('--dump-build-type -> iExit=%u sStdOut=%s' % (iExit, sStdOut,)); 462 473 463 474 # Do some checks. … … 873 884 self.fAlwaysUploadScreenshots = False; 874 885 self.fEnableDebugger = True; 886 887 # Drop LD_PRELOAD and enable memory leak detection in LSAN_OPTIONS from vboxinstall.py 888 # before doing build detection. This is a little crude and inflexible... 889 if 'LD_PRELOAD' in os.environ: 890 del os.environ['LD_PRELOAD']; 891 if 'LSAN_OPTIONS' in os.environ: 892 asLSanOptions = os.environ['LSAN_OPTIONS'].split(':'); 893 try: asLSanOptions.remove('detect_leaks=0'); 894 except: pass; 895 if asLSanOptions: os.environ['LSAN_OPTIONS'] = ':'.join(asLSanOptions); 896 else: del os.environ['LSAN_OPTIONS']; 875 897 876 898 # Quietly detect build and validation kit.
Note:
See TracChangeset
for help on using the changeset viewer.