Changeset 71084 in vbox
- Timestamp:
- Feb 21, 2018 1:01:33 PM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 2 edited
-
testdriver/vboxwrappers.py (modified) (2 diffs)
-
testmanager/batch/virtual_test_sheriff.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r70795 r71084 1548 1548 if sys.version_info[0] < 3: 1549 1549 abHostIP = (ord(abHostIP[0]), ord(abHostIP[1]), ord(abHostIP[2]), ord(abHostIP[3])); 1550 if abHostIP[0] == 127 \1551 or (abHostIP[0] == 169 and abHostIP[1] == 254) \1552 or (abHostIP[0] == 192 and abHostIP[1] == 168 and abHostIP[2] == 56):1553 reporter.log('warning: host IP for "%s" is %s, most likely not unique.' % (sHostName, sHostIP))1554 except:1555 re porter.errorXcpt('failed to determine the host IP for "%s".' % (sHostName,))1556 return False 1550 except: 1551 return reporter.errorXcpt('failed to determine the host IP for "%s".' % (sHostName,)) 1552 if abHostIP[0] == 127 \ 1553 or (abHostIP[0] == 169 and abHostIP[1] == 254) \ 1554 or (abHostIP[0] == 192 and abHostIP[1] == 168 and abHostIP[2] == 56): 1555 return reporter.error('host IP for "%s" is %s, most likely not unique.' % (sHostName, sHostIP)) 1556 1557 1557 sDefaultMac = '%02X%02X%02X%02X%02X%02X' \ 1558 1558 % (0x02, abHostIP[0], abHostIP[1], abHostIP[2], abHostIP[3], iNic) … … 1563 1563 oNic = self.o.machine.getNetworkAdapter(iNic) 1564 1564 except: 1565 reporter.errorXcpt('getNetworkAdapter(%s) failed for "%s"' % (iNic, self.sName)) 1566 return False 1565 return reporter.errorXcpt('getNetworkAdapter(%s) failed for "%s"' % (iNic, self.sName)) 1567 1566 1568 1567 try: 1569 1568 oNic.MACAddress = sMacAddr 1570 1569 except: 1571 re porter.errorXcpt('failed to set the MAC address on slot %s to "%s" for VM "%s"' \1570 return reporter.errorXcpt('failed to set the MAC address on slot %s to "%s" for VM "%s"' \ 1572 1571 % (iNic, sMacAddr, self.sName)) 1573 return False1574 1572 1575 1573 reporter.log('set MAC address on slot %s to %s for VM "%s"' % (iNic, sMacAddr, self.sName)) -
trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py
r70847 r71084 188 188 def getMainLog(self): 189 189 """ 190 Tries to read sthe main log file since this will be the first source of information.190 Tries to read the main log file since this will be the first source of information. 191 191 """ 192 192 if self.sMainLog: … … 205 205 def getLogFile(self, oFile): 206 206 """ 207 Tries to read sthe given file as a utf-8 log file.207 Tries to read the given file as a utf-8 log file. 208 208 oFile is a TestFileDataEx instance. 209 209 Returns empty string if problems opening or reading the file. … … 486 486 ktReason_Host_Modprobe_Failed = ( 'Host', 'Modprobe failed' ); 487 487 ktReason_Host_Install_Hang = ( 'Host', 'Install hang' ); 488 ktReason_Host_NetworkMisconfiguration = ( 'Host', 'Network misconfiguration' ); 488 489 ktReason_Networking_Nonexistent_host_nic = ( 'Networking', 'Nonexistent host networking interface' ); 489 490 ktReason_OSInstall_GRUB_hang = ( 'O/S Install', 'GRUB hang' ); … … 883 884 ( True, ktReason_OSInstall_Sata_no_BM, 'PCHS=14128/14134/8224' ), 884 885 ( True, ktReason_Host_DoubleFreeHeap, 'double free or corruption' ), 886 ( True, ktReason_Host_NetworkMisconfiguration, 'most likely not unique' ), 885 887 ]; 886 888
Note:
See TracChangeset
for help on using the changeset viewer.

