Changeset 84821 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jun 14, 2020 7:12:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r84805 r84821 1354 1354 def __init__(self, sImgPath = None): 1355 1355 self.sImgPath = sImgPath; 1356 self.s VBoxServiceLogPath = '';1356 self.sGstVBoxServiceLogPath = ''; 1357 1357 self.fNoExit = False; 1358 1358 … … 1486 1486 1487 1487 # Upload VBoxService logs on failure. 1488 if not fRc\1489 and self.oDebug.s VBoxServiceLogPath:1488 if reporter.testErrorCount() > 0 \ 1489 and self.oDebug.sGstVBoxServiceLogPath: 1490 1490 sVBoxServiceLogsTarGz = 'ga-vboxservice-logs-%s.tar.gz' % oTestVm.sVmName; 1491 s VBoxServiceLogsTarGzAbs= oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), sVBoxServiceLogsTarGz);1491 sGstVBoxServiceLogsTarGz = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), sVBoxServiceLogsTarGz); 1492 1492 if self.oTstDrv.txsPackFile(oSession, oTxsSession, \ 1493 s VBoxServiceLogsTarGzAbs, self.oDebug.sVBoxServiceLogPath, fIgnoreErrors = True):1494 self.oTstDrv.txsDownloadFiles(oSession, oTxsSession, [ (s VBoxServiceLogsTarGzAbs, sVBoxServiceLogsTarGz) ], \1493 sGstVBoxServiceLogsTarGz, self.oDebug.sGstVBoxServiceLogPath, fIgnoreErrors = True): 1494 self.oTstDrv.txsDownloadFiles(oSession, oTxsSession, [ (sGstVBoxServiceLogsTarGz, sVBoxServiceLogsTarGz) ], \ 1495 1495 fIgnoreErrors = True); 1496 1496 … … 1639 1639 # Enable VBoxService verbose logging. 1640 1640 # 1641 self.oDebug.s VBoxServiceLogPath = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), "VBoxService");1642 if oTxsSession.syncMkDirPath(self.oDebug.s VBoxServiceLogPath, 0o777) is not True:1643 return reporter.error('Failed to create directory "%s"!' % (self.oDebug.s VBoxServiceLogPath,));1644 sPathLogFile = oTestVm.pathJoin(self.oDebug.s VBoxServiceLogPath, 'VBoxService.log');1645 1646 reporter.log('VBoxService logs will be stored in "%s"' % (self.oDebug.s VBoxServiceLogPath,));1641 self.oDebug.sGstVBoxServiceLogPath = oTestVm.pathJoin(self.oTstDrv.getGuestTempDir(oTestVm), "VBoxService"); 1642 if oTxsSession.syncMkDirPath(self.oDebug.sGstVBoxServiceLogPath, 0o777) is not True: 1643 return reporter.error('Failed to create directory "%s"!' % (self.oDebug.sGstVBoxServiceLogPath,)); 1644 sPathLogFile = oTestVm.pathJoin(self.oDebug.sGstVBoxServiceLogPath, 'VBoxService.log'); 1645 1646 reporter.log('VBoxService logs will be stored in "%s"' % (self.oDebug.sGstVBoxServiceLogPath,)); 1647 1647 1648 1648 if oTestVm.isWindows():
Note:
See TracChangeset
for help on using the changeset viewer.