- Timestamp:
- Feb 27, 2019 10:15:55 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r77471 r77476 3099 3099 self.oTstDrv.txsDownloadFiles(oSession, oTxsSession, aGstFiles, fIgnoreErrors = True); 3100 3100 3101 # Create file with buffer content on host. 3102 sHstFileName = os.path.join(self.oTstDrv.sScratchPath, ('testGuestCtrlWriteTest%d' % i)); 3101 # Create files with buffer contents and upload those for later (manual) inspection. 3102 sHstFileName = os.path.join(self.oTstDrv.sScratchPath, ('testGuestCtrlWriteTest%d-BufExcepted' % i)); 3103 try: 3104 oCurTestFile = open(sHstFileName, "wb"); 3105 oCurTestFile.write(curRes.aBuf); 3106 oCurTestFile.close(); 3107 reporter.addLogFile(sHstFileName, 'misc/other', 'Test #%d: Expected buffer' % i); 3108 except: 3109 reporter.error('Test #%d failed: Unable to create temporary expected buffer file "%s"' \ 3110 % (i, sHstFileName)); 3111 3112 sHstFileName = os.path.join(self.oTstDrv.sScratchPath, ('testGuestCtrlWriteTest%d-BufGot' % i)); 3103 3113 try: 3104 3114 oCurTestFile = open(sHstFileName, "wb"); 3105 3115 oCurTestFile.write(aBufRead); 3106 3116 oCurTestFile.close(); 3107 reporter.addLogFile(sHstFileName, 'misc/other', 3108 'Buffer of testGuestCtrlFileWrite test #%d' % i); 3117 reporter.addLogFile(sHstFileName, 'misc/other', 'Test #%d: Got buffer' % i); 3109 3118 except: 3110 reporter.error('Test #%d failed: Unable to create temporary buffer file "%s"' \3119 reporter.error('Test #%d failed: Unable to create temporary got buffer file "%s"' \ 3111 3120 % (i, sHstFileName)); 3112 3121 fRc = False;
Note:
See TracChangeset
for help on using the changeset viewer.