Changeset 84482 in vbox for trunk/src/VBox/ValidationKit/testdriver/vbox.py
- Timestamp:
- May 25, 2020 8:16:03 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r84454 r84482 2599 2599 """ 2600 2600 if oTestVm.isWindows(): 2601 if oTestVm.sKind in ['WindowsNT4', 'WindowsNT3x',]: 2602 return 'C:\\Winnt\\System32'; 2603 return 'C:\\Windows\\System32'; 2601 return oTestVm.pathJoin(TestDriver.getGuestWinDir(oTestVm), 'System32'); 2604 2602 if oTestVm.isOS2(): 2605 2603 return 'C:\\OS2\\DLL'; … … 2617 2615 """ 2618 2616 if oTestVm.isWindows(): 2619 if oTestVm.sKind in ['WindowsNT4', 'WindowsNT3x',]: 2620 return 'C:\\Winnt\\System32'; 2621 return 'C:\\Windows\\System32'; 2617 return oTestVm.pathJoin(TestDriver.getGuestWinDir(oTestVm), 'System32'); 2622 2618 if oTestVm.isOS2(): 2623 2619 return 'C:\\OS2\\DLL'; ## @todo r=andy Not sure here. 2624 2620 return sPathPrefix + "/sbin"; 2621 2622 @staticmethod 2623 def getGuestWinDir(oTestVm): 2624 """ 2625 Helper for finding the Windows directory in the test VM that we can play around with. 2626 ASSUMES that we always install Windows on drive C. 2627 2628 Returns the Windows directory, or an empty string when executed on a non-Windows guest (asserts). 2629 """ 2630 sWinDir = ''; 2631 if oTestVm.isWindows(): 2632 if oTestVm.sKind in ['WindowsNT4', 'WindowsNT3x',]: 2633 sWinDir = 'C:/WinNT/'; 2634 else: 2635 sWinDir = 'C:/Windows/'; 2636 assert sWinDir != '', 'Retrieving Windows directory for non-Windows OS'; 2637 return sWinDir; 2625 2638 2626 2639 @staticmethod
Note:
See TracChangeset
for help on using the changeset viewer.