Changeset 61441 in vbox
- Timestamp:
- Jun 3, 2016 12:54:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py
r61425 r61441 380 380 ktReason_Guru_VERR_IEM_ASPECT_NOT_IMPLEMENTED = ( 'Guru Meditations', 'VERR_IEM_ASPECT_NOT_IMPLEMENTED' ); 381 381 ktReason_Guru_VERR_TRPM_DONT_PANIC = ( 'Guru Meditations', 'VERR_TRPM_DONT_PANIC' ); 382 ktReason_Guru_VERR_PGM_PHYS_PAGE_RESERVED = ( 'Guru Meditations', 'VERR_PGM_PHYS_PAGE_RESERVED' ); 382 383 ktReason_Guru_VINF_EM_TRIPLE_FAULT = ( 'Guru Meditations', 'VINF_EM_TRIPLE_FAULT' ); 383 384 ktReason_XPCOM_Exit_Minus_11 = ( 'API / (XP)COM', 'exit -11' ); … … 418 419 419 420 # Try promote to single reason. 420 if len(dReasonForResultId) > 1: 421 atValues = dReasonForResultId.values(); 422 if len(atValues) == atValues.count(atValues[0]): 423 self.dprint('Merged %d reasons to a single one: %s' % (len(atValues), atValues[0])); 424 dReasonForResultId = { oCaseFile.oTestSet.idTestResult: atValues[0], }; 425 if len(dCommentForResultId) > 0: 426 dCommentForResultId = { oCaseFile.oTestSet.idTestResult: dCommentForResultId.values()[0], }; 421 atValues = dReasonForResultId.values(); 422 fSingleReason = True; 423 if len(dReasonForResultId) == 1 and dReasonForResultId.keys()[0] != oCaseFile.oTestSet.idTestResult: 424 self.dprint('Promoting single reason to whole set: %s' % (atValues[0],)); 425 elif len(dReasonForResultId) > 1 and len(atValues) == atValues.count(atValues[0]): 426 self.dprint('Merged %d reasons to a single one: %s' % (len(atValues), atValues[0])); 427 else: 428 fSingleReason = False; 429 if fSingleReason: 430 dReasonForResultId = { oCaseFile.oTestSet.idTestResult: atValues[0], }; 431 if len(dCommentForResultId) > 0: 432 dCommentForResultId = { oCaseFile.oTestSet.idTestResult: dCommentForResultId.values()[0], }; 427 433 elif oCaseFile.tReason is not None: 428 434 dReasonForResultId = { oCaseFile.oTestSet.idTestResult: oCaseFile.tReason, }; … … 568 574 # ( Whether to stop on hit, needle, reason tuple ), 569 575 ( False, 'GuruMeditation', ktReason_Guru_Generic ), 576 ( False, 'Guru Meditation', ktReason_Guru_Generic ), 570 577 ( True, 'VERR_IEM_INSTR_NOT_IMPLEMENTED', ktReason_Guru_VERR_IEM_INSTR_NOT_IMPLEMENTED ), 571 578 ( True, 'VERR_IEM_ASPECT_NOT_IMPLEMENTED', ktReason_Guru_VERR_IEM_ASPECT_NOT_IMPLEMENTED ), 572 579 ( True, 'VERR_TRPM_DONT_PANIC', ktReason_Guru_VERR_TRPM_DONT_PANIC ), 580 ( True, 'VERR_PGM_PHYS_PAGE_RESERVED', ktReason_Guru_VERR_PGM_PHYS_PAGE_RESERVED ), 573 581 ( True, 'VINF_EM_TRIPLE_FAULT', ktReason_Guru_VINF_EM_TRIPLE_FAULT ), 574 582 ( False, 'Exception: 0x800706be (Call to remote object failed (NS_ERROR_CALL_FAILED))',
Note:
See TracChangeset
for help on using the changeset viewer.

