Changeset 94244 in vbox
- Timestamp:
- Mar 15, 2022 11:59:37 AM (3 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/utils.py
r94123 r94244 675 675 return subprocess.Popen(*aPositionalArgs, **dKeywordArgs); # pylint: disable=consider-using-with 676 676 677 def processStart(*aPositionalArgs, **dKeywordArgs): 678 """ 679 Wrapper around subprocess.Popen to deal with its absence in older 680 python versions. 681 Returns process object on success which can be worked on. 682 """ 683 _processFixPythonInterpreter(aPositionalArgs, dKeywordArgs); 684 return processPopenSafe(*aPositionalArgs, **dKeywordArgs); 685 677 686 def processCall(*aPositionalArgs, **dKeywordArgs): 678 687 """ … … 683 692 assert dKeywordArgs.get('stdout') is None; 684 693 assert dKeywordArgs.get('stderr') is None; 685 _processFixPythonInterpreter(aPositionalArgs, dKeywordArgs); 686 oProcess = processPopenSafe(*aPositionalArgs, **dKeywordArgs); 694 oProcess = processStart(*aPositionalArgs, **dKeywordArgs); 687 695 return oProcess.wait(); 688 696 … … 797 805 return None; 798 806 807 808 def sudoProcessStart(*aPositionalArgs, **dKeywordArgs): 809 """ 810 sudo (or similar) + subprocess.Popen, 811 returning the process object on success. 812 """ 813 _processFixPythonInterpreter(aPositionalArgs, dKeywordArgs); 814 _sudoFixArguments(aPositionalArgs, dKeywordArgs); 815 return processStart(*aPositionalArgs, **dKeywordArgs); 799 816 800 817 def sudoProcessCall(*aPositionalArgs, **dKeywordArgs): -
trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py
r94243 r94244 315 315 316 316 iPid = oProcess.pid; 317 self.pidFileAdd( iPid);317 self.pidFileAdd(sWhat, iPid); 318 318 319 319 iRc = 0; … … 391 391 reporter.log2('Thread returned exit code for "%s": %d' % (sWhat, self.iThreadHstProcRc)); 392 392 except: 393 self.logXcpt('Starting thread for "%s" failed' % (sWhat,));393 reporter.logXcpt('Starting thread for "%s" failed' % (sWhat,)); 394 394 395 395 return self.iThreadHstProcRc == 0;
Note:
See TracChangeset
for help on using the changeset viewer.