Changeset 93797 in vbox for trunk/src/VBox/ValidationKit/tests/additions
- Timestamp:
- Feb 16, 2022 4:52:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r93795 r93797 2760 2760 """ 2761 2761 2762 s Cmd= self.oTstDrv.getGuestSystemShell(oTestVm);2763 asArgs = [s Cmd,];2762 sShell = self.oTstDrv.getGuestSystemShell(oTestVm); 2763 asArgs = [sShell,]; 2764 2764 2765 2765 # Use credential defaults. … … 2795 2795 try: 2796 2796 reporter.log2('Starting stale process #%d...' % (i)); 2797 oGuestSession.processCreate(s Cmd,2797 oGuestSession.processCreate(sShell, 2798 2798 asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:], [], 2799 2799 [ vboxcon.ProcessCreateFlag_WaitForStdOut ], 30 * 1000); … … 2821 2821 # 2822 2822 if oTestVm.isWindows() or oTestVm.isOS2(): 2823 asArgs = [ s Cmd, '/C', 'dir', '/S', self.oTstDrv.getGuestSystemDir(oTestVm), ];2823 asArgs = [ sShell, '/C', 'dir', '/S', self.oTstDrv.getGuestSystemDir(oTestVm), ]; 2824 2824 else: 2825 asArgs = [ s Cmd, '-c', 'ls -la ' + self.oTstDrv.getGuestSystemDir(oTestVm), ];2825 asArgs = [ sShell, '-c', 'ls -la ' + self.oTstDrv.getGuestSystemDir(oTestVm), ]; 2826 2826 reporter.log('Starting non-stale processes...'); 2827 2827 aoProcs = []; … … 2829 2829 try: 2830 2830 reporter.log2('Starting non-stale process #%d...' % (i)); 2831 oCurProc = oGuestSession.processCreate(s Cmd, asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],2831 oCurProc = oGuestSession.processCreate(sShell, asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:], 2832 2832 [], [], 0); # Infinite timeout. 2833 2833 aoProcs.append(oCurProc); … … 2872 2872 # 2873 2873 if oTestVm.isWindows() or oTestVm.isOS2(): 2874 sCmd = sShell; 2874 2875 asArgs = [ sCmd, '/C', 'pause']; 2875 2876 else: 2877 sCmd = '/usr/bin/yes'; 2876 2878 asArgs = [ sCmd ]; 2877 2879 reporter.log('Starting blocking processes...');
Note:
See TracChangeset
for help on using the changeset viewer.