Changeset 61511 in vbox
- Timestamp:
- Jun 6, 2016 11:51:45 PM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 4 edited
-
testdriver/vbox.py (modified) (2 diffs)
-
testdriver/vboxwrappers.py (modified) (3 diffs)
-
testmanager/core/testboxcontroller.py (modified) (1 diff)
-
testmanager/core/testresults.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r61447 r61511 2552 2552 sLastScreenshotPath = None; 2553 2553 2554 #2555 2554 # Query the OS kernel log from the debugger if appropriate/requested. 2556 #2557 2555 sOsKernelLog = None; 2558 2556 if self.fAlwaysUploadLogs or reporter.testErrorCount() > 0: 2559 2557 sOsKernelLog = oSession.queryOsKernelLog(); 2558 2559 # Do "info vgatext all" separately. 2560 sVgaText = None; 2561 if self.fAlwaysUploadLogs or reporter.testErrorCount() > 0: 2562 sVgaText = oSession.queryDbgInfoVgaText(); 2563 2564 # Various infos (do after kernel because of symbols). 2565 asMiscInfos = []; 2566 if self.fAlwaysUploadLogs or reporter.testErrorCount() > 0: 2567 for sInfo, sArg in [ ('mode', 'all'), 2568 ('fflags', ''), 2569 ('cpumguest', 'verbose all'), 2570 ('cpumguestinstr', 'symbol all'), 2571 ('pic', ''), 2572 ('apic', ''), 2573 ('ioapic', ''), 2574 ('pit', ''), 2575 ('phys', ''), 2576 ('clocks', ''), 2577 ('timers', ''), 2578 ('guestgdt', ''), 2579 ('ldtguest', ''), 2580 ]: 2581 sThis = oSession.queryDbgInfo(sInfo, sArg); 2582 if sThis is not None and len(sThis) > 0: 2583 if sThis[-1] != '\n': 2584 sThis += '\n'; 2585 asMiscInfos += [ 2586 '================ start %s %s ================\n' % (sInfo, sArg), 2587 sThis, 2588 '================ end %s %s ==================\n' % (sInfo, sArg), 2589 ]; 2560 2590 2561 2591 # … … 2632 2662 if sOsKernelLog is not None: 2633 2663 reporter.addLogString(sOsKernelLog, 'kernel.log', 'log/guest/kernel', 'Guest OS kernel log'); 2664 2665 # Add "info vgatext all" if we've got it. 2666 if sVgaText is not None: 2667 reporter.addLogString(sVgaText, 'vgatext.txt', 'info/vgatext', 'info vgatext all'); 2668 2669 # Add the "info xxxx" items if we've got any. 2670 if len(asMiscInfos) > 0: 2671 reporter.addLogString(u''.join(asMiscInfos), 'info.txt', 'info/collection', 'A bunch of info items.'); 2672 2634 2673 2635 2674 return fRc; -
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r61350 r61511 1440 1440 try: 1441 1441 sHostName = socket.getfqdn() 1442 if not '.'in sHostName:1442 if '.' not in sHostName: 1443 1443 # somewhat misconfigured system, needs expensive approach to guessing FQDN 1444 1444 for aAI in socket.getaddrinfo(sHostName, None): … … 2399 2399 reporter.logXcpt('Unable to get the guest OS (%s) kernel log' % (sOsDetected,)); 2400 2400 return sOsKernelLog; 2401 2402 def queryDbgInfo(self, sItem, sArg = '', sDefault = None): 2403 """ 2404 Simple wrapper around IMachineDebugger::info. 2405 2406 Returns string on success, sDefault on failure (logged). 2407 """ 2408 try: 2409 return self.o.console.debugger.info(sItem, sArg); 2410 except: 2411 reporter.logXcpt('Unable to query "%s" with arg "%s"' % (sItem, sArg,)); 2412 return sDefault; 2413 2414 def queryDbgInfoVgaText(self, sArg = 'all'): 2415 """ 2416 Tries to get the 'info vgatext' output, provided we're in next mode. 2417 2418 Returns string containing text on success. 2419 Returns None on failure or not text mode. 2420 """ 2421 sVgaText = None; 2422 try: 2423 sVgaText = self.o.console.debugger.info('vgatext', sArg); 2424 if sVgaText == 'Not in text mode!': 2425 sVgaText = None; 2426 except: 2427 reporter.logXcpt('Unable to query vgatext with arg "%s"' % (sArg,)); 2428 return sVgaText; 2429 2401 2430 2402 2431 # … … 2547 2576 fReversedSetup = False; 2548 2577 fUseNatForTxs = False; 2549 if sIpAddr ==None:2578 if sIpAddr is None: 2550 2579 try: 2551 2580 oNic = self.oVM.getNetworkAdapter(0); -
trunk/src/VBox/ValidationKit/testmanager/core/testboxcontroller.py
r61509 r61511 719 719 'crash/report/client', 720 720 'crash/dump/client', 721 'info/collection', 722 'info/vgatext', 721 723 'misc/other', 722 724 'screenshot/failure', -
trunk/src/VBox/ValidationKit/testmanager/core/testresults.py
r61478 r61511 406 406 ksKind_CrashReportClient = 'crash/report/client'; 407 407 ksKind_CrashDumpClient = 'crash/dump/client'; 408 ksKind_InfoCollection = 'info/collection'; 409 ksKind_InfoVgaText = 'info/vgatext'; 408 410 ksKind_MiscOther = 'misc/other'; 409 411 ksKind_ScreenshotFailure = 'screenshot/failure';
Note:
See TracChangeset
for help on using the changeset viewer.

