Changeset 65803 in vbox for trunk/src/VBox/ValidationKit/testmanager/batch
- Timestamp:
- Feb 17, 2017 1:17:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py
r65802 r65803 745 745 return False; 746 746 747 @staticmethod 748 def extractGuestCpuStack(sInfoText): 747 def extractGuestCpuStack(self, sInfoText): 749 748 """ 750 749 Extracts the guest CPU stacks from the input file. … … 757 756 off = 0; 758 757 while True: 758 # Find the stack. 759 759 offStart = sInfoText.find('=== start guest stack VCPU ', off); 760 760 if offStart < 0: 761 761 break; 762 762 offEnd = sInfoText.find('=== end guest stack', offStart + 20); 763 if offEnd < 0: 763 if offEnd >= 0: 764 offEnd += 3; 765 else: 764 766 offEnd = sInfoText.find('=== start guest stack VCPU', offStart + 20); 765 if offEnd >= 0: 766 offEnd += 3; 767 else: 767 if offEnd < 0: 768 768 offEnd = len(sInfoText); 769 769 770 770 sStack = sInfoText[offStart : offEnd]; 771 771 sStack = sStack.replace('\r',''); # paranoia 772 asLines = sStack.split( );773 774 # figure the CPU.772 asLines = sStack.split('\n'); 773 774 # Figure the CPU. 775 775 asWords = asLines[0].split(); 776 if asWords < 6 or not asWords[6].isdigit():776 if len(asWords) < 6 or not asWords[5].isdigit(): 777 777 break; 778 iCpu = int(asWords[ 6]);779 780 # add it.778 iCpu = int(asWords[5]); 779 780 # Add it and advance. 781 781 dRet[iCpu] = [sLine.rstrip() for sLine in asLines[2:-1]] 782 off = offEnd; 782 783 return dRet; 783 784 … … 800 801 cHits += 1; 801 802 break; 803 self.dprint('kvm_lock_spinning: %s/%s hits' % (cHits, len(dStacks),)); 802 804 if cHits == len(dStacks): 803 805 return (True, self.ktReason_VMM_kvm_lock_spinning);
Note:
See TracChangeset
for help on using the changeset viewer.