Changeset 94244 in vbox for trunk/src/VBox/ValidationKit/common
- Timestamp:
- Mar 15, 2022 11:59:37 AM (3 years ago)
- File:
-
- 1 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):
Note:
See TracChangeset
for help on using the changeset viewer.