Changeset 77653 in vbox
- Timestamp:
- Mar 11, 2019 2:03:37 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py
r77645 r77653 427 427 # 428 428 aidFailureReasons = [ 429 self.getFailureReason(self.ktReason_Host_DriverNotLoaded).idFailureReason, 429 430 self.getFailureReason(self.ktReason_Host_DriverNotUnloading).idFailureReason, 430 431 self.getFailureReason(self.ktReason_Host_DriverNotCompilable).idFailureReason, … … 513 514 cStatusTimeoutMins = 10; 514 515 515 self.oDb.execute('SELECT idTestBox FROM TestBoxStatuses WHERE tsUpdated < (CURRENT_TIMESTAMP - interval \'%s minutes\')', (cStatusTimeoutMins,)); 516 self.oDb.execute('SELECT TestBoxStatuses.idTestBox\n' 517 ' FROM TestBoxStatuses, TestBoxes\n' 518 ' WHERE TestBoxStatuses.tsUpdated >= (CURRENT_TIMESTAMP - interval \'%s hours\')\n' 519 ' AND TestBoxStatuses.tsUpdated < (CURRENT_TIMESTAMP - interval \'%s minutes\')\n' 520 ' AND TestBoxStatuses.idTestBox = TestBoxes.idTestBox\n' 521 ' AND Testboxes.tsExpire = \'infinity\'::timestamp', (cHoursBack,cStatusTimeoutMins)); 516 522 for idTestBox in self.oDb.fetchAll(): 517 523 idTestBox = idTestBox[0]; … … 541 547 542 548 except Exception as oXcpt: 543 rcExit = self.eprint(u'Error reset ing testbox #%u (%s): %s\n' % (idTestBox, oTestBox.sName, oXcpt,));549 rcExit = self.eprint(u'Error resetting testbox #%u (%s): %s\n' % (idTestBox, oTestBox.sName, oXcpt,)); 544 550 545 551 return rcExit;
Note:
See TracChangeset
for help on using the changeset viewer.