Changeset 84161 in vbox for trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
- Timestamp:
- May 6, 2020 1:29:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r83793 r84161 2191 2191 fRc = reporter.errorXcpt('asArgs=%s' % (oTest.asArgs,)); 2192 2192 break; 2193 reporter.log2('Wait returned: %d' % (eWaitResult,));2193 #reporter.log2('Wait returned: %d' % (eWaitResult,)); 2194 2194 2195 2195 # Process output: … … 2197 2197 (vboxcon.ProcessWaitResult_StdErr, 2, 'stderr'), ]: 2198 2198 if eWaitResult in (eFdResult, vboxcon.ProcessWaitResult_WaitFlagNotSupported): 2199 reporter.log2('Reading %s ...' % (sFdNm,));2200 2199 try: 2201 abBuf = oProcess. Read(1, 64 * 1024, oTest.timeoutMS);2200 abBuf = oProcess.read(iFd, 64 * 1024, oTest.timeoutMS); 2202 2201 except KeyboardInterrupt: # Not sure how helpful this is, but whatever. 2203 2202 reporter.error('Process (PID %d) execution interrupted' % (iPid,)); … … 2205 2204 except: pass; 2206 2205 except: 2207 pass; ## @todo test for timeouts and fail on anything else!2206 reporter.maybeErrXcpt(fIsError, 'asArgs=%s' % (oTest.asArgs,)); 2208 2207 else: 2209 2208 if abBuf: 2210 2209 reporter.log2('Process (PID %d) got %d bytes of %s data' % (iPid, len(abBuf), sFdNm,)); 2210 for sLine in abBuf.splitlines(): 2211 reporter.log('%s: %s' % (sFdNm, sLine)); 2211 2212 acbFdOut[iFd] += len(abBuf); 2212 2213 oTest.sBuf = abBuf; ## @todo Figure out how to uniform + append! … … 2933 2934 if sVBoxControl: 2934 2935 # Paths with spaces on windows. 2935 atExec.append([ tdTestExec(sCmd = sVBoxControl, asArgs = [ sVBoxControl, 'version' ]), 2936 tdTestResultExec(fRc = True) ]); 2936 atExec.append([ tdTestExec(sCmd = sVBoxControl, asArgs = [ sVBoxControl, 'version' ], 2937 afFlags = [ vboxcon.ProcessCreateFlag_WaitForStdOut, 2938 vboxcon.ProcessCreateFlag_WaitForStdErr ]), 2939 tdTestResultExec(fRc = True) ]); 2937 2940 2938 2941 # Build up the final test array for the first batch.
Note:
See TracChangeset
for help on using the changeset viewer.