VirtualBox

Changeset 70509 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 10, 2018 11:23:52 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120133
Message:

ValidationKit/tests: python 3 updates.

Location:
trunk/src/VBox/ValidationKit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/Config.kmk

    r70403 r70509  
    109109
    110110TEMPLATE_VBoxValidationKitR3_USES += vboximportchecker
    111 TEMPLATE_VBoxValidationKitR3_VBOX_IMPORT_CHECKER.win.x86   = nt350
     111TEMPLATE_VBoxValidationKitR3_VBOX_IMPORT_CHECKER   = nt31$(error fuck)
     112TEMPLATE_VBoxValidationKitR3_VBOX_IMPORT_CHECKER.x86   = nt31$(error fuck)
     113TEMPLATE_VBoxValidationKitR3_VBOX_IMPORT_CHECKER.win.x86   = nt31$(error fuck)
    112114TEMPLATE_VBoxValidationKitR3_VBOX_IMPORT_CHECKER.win.amd64 = xp64
    113115
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r70391 r70509  
    539539            else:
    540540                oGstCtrlSession.environmentSet(self.sVar, self.sValue);
    541         except vbox.ComException, oXcpt:
     541        except vbox.ComException as oXcpt:
    542542            # Is this an expected failure?
    543543            if vbox.ComError.equal(oXcpt, self.hrcExpected):
     
    580580            else:
    581581                oGstCtrlSession.environmentUnset(self.sVar);
    582         except vbox.ComException, oXcpt:
     582        except vbox.ComException as oXcpt:
    583583            # Is this an expected failure?
    584584            if vbox.ComError.equal(oXcpt, self.hrcExpected):
     
    621621            else:
    622622                oTstDrv.oVBoxMgr.setArray(oGstCtrlSession, 'environment', self.asEnv);
    623         except vbox.ComException, oXcpt:
     623        except vbox.ComException as oXcpt:
    624624            # Is this an expected failure?
    625625            if vbox.ComError.equal(oXcpt, self.hrcExpected):
     
    726726                else:
    727727                    oFsInfo = oGstCtrlSession.fileQueryInfo(self.sPath);
    728             except vbox.ComException, oXcpt:
     728            except vbox.ComException as oXcpt:
    729729                ## @todo: The error reporting in the API just plain sucks! Most of the errors are
    730730                ##        VBOX_E_IPRT_ERROR and there seems to be no way to distinguish between
     
    12081208                                       % (sSubDir, oFsObjInfo.name, oFsObjInfo.type));
    12091209                        fRc = False;
    1210                 except Exception, oXcpt:
     1210                except Exception as oXcpt:
    12111211                    # No necessarily an error -- could be VBOX_E_OBJECT_NOT_FOUND. See reference.
    12121212                    if vbox.ComError.equal(oXcpt, vbox.ComError.VBOX_E_OBJECT_NOT_FOUND):
     
    13591359                                       (sCurDir, oFsObjInfo.name, oFsObjInfo.type));
    13601360                        fRc = False;
    1361                 except Exception, oXcpt:
     1361                except Exception as oXcpt:
    13621362                    # No necessarily an error -- could be VBOX_E_OBJECT_NOT_FOUND. See reference.
    13631363                    if vbox.ComError.equal(oXcpt, vbox.ComError.VBOX_E_OBJECT_NOT_FOUND):
  • trunk/src/VBox/ValidationKit/tests/teleportation/tdTeleportLocal1.py

    r69111 r70509  
    764764        try:
    765765            oSession.o.machine.teleporterPort = uPort;
    766         except Exception, oXcpt:
     766        except Exception as oXcpt:
    767767            if not fInvalid or vbox.ComError.notEqual(oXcpt, vbox.ComError.E_INVALIDARG):
    768768                return reporter.testFailureXcpt('machine.teleporterPort=%u' % (uPort,));
     
    875875        try:
    876876            oProgress = oSession.o.console.teleport(sHostname, uPort, sPassword, cMsMaxDowntime);
    877         except vbox.ComException, oXcpt:
     877        except vbox.ComException as oXcpt:
    878878            if vbox.ComError.equal(oXcpt, hrcExpected):
    879879                fRc = True;
     
    882882                                     % (vbox.ComError.toString(oXcpt.hresult),
    883883                                        vbox.ComError.toString(hrcExpected)));
    884         except Exception, oXcpt:
     884        except Exception as oXcpt:
    885885            reporter.testFailure('Unexpected exception %s' % (oXcpt));
    886886        else:
  • trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py

    r69111 r70509  
    10631063            oSocket.connect((self.sHostname, self.uPort));
    10641064            rc = True;
    1065         except socket.error, e:
     1065        except socket.error as e:
    10661066            iRc = e[0];
    10671067            if self.__isInProgressXcpt(e):
     
    10741074                    iRc = oSocket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR);
    10751075                    rc = iRc == 0;
    1076                 except socket.error, e:
     1076                except socket.error as e:
    10771077                    iRc = e[0];
    10781078                except:
     
    11911191            if cbSent == len(abBuf):
    11921192                return True;
    1193         except Exception, oXcpt:
     1193        except Exception as oXcpt:
    11941194            if not self.__isWouldBlockXcpt(oXcpt):
    11951195                reporter.errorXcpt('TranportTcp.sendBytes: %s bytes' % (len(abBuf)));
     
    12231223                if cbSent == len(abBuf):
    12241224                    return True;
    1225             except Exception, oXcpt:
     1225            except Exception as oXcpt:
    12261226                if not self.__isWouldBlockXcpt(oXcpt):
    12271227                    reporter.errorXcpt('TranportTcp.sendBytes: %s bytes' % (len(abBuf)));
     
    12481248                if abBuf:
    12491249                    self.abReadAhead.extend(array.array('B', abBuf));
    1250             except Exception, oXcpt:
     1250            except Exception as oXcpt:
    12511251                if not self.__isWouldBlockXcpt(oXcpt):
    12521252                    reporter.errorXcpt('TranportTcp.recvBytes: 0/%s bytes' % (cb,));
     
    12911291                self.abReadAhead.extend(array.array('B', abBuf));
    12921292
    1293             except Exception, oXcpt:
     1293            except Exception as oXcpt:
    12941294                reporter.log('recv => exception %s' % (oXcpt,));
    12951295                if not self.__isWouldBlockXcpt(oXcpt):
  • trunk/src/VBox/ValidationKit/utils/TestExecServ/Makefile.kmk

    r69111 r70509  
    3737        TestExecService.cpp \
    3838        TestExecServiceTcp.cpp
     39TestExecService_VBOX_IMPORT_CHECKER.win.x86   = nt31 $(warning fix VBOX_IMPORT_CHECKER.win.x86 template bugbug!)
    3940
    4041INSTALLS += TestExecServiceFiles
     
    6566include $(FILE_KBUILD_SUB_FOOTER)
    6667
     68#%fffffe800000600c 0f 20 dc                mov esp, cr3
     69#%fffffe800000600f 0f 1f 44 00 00          db 00fh, 01fh,044h,090h,090h
     70#%fffffe8000006014 48 81 e4 ff e7 ff ff    and rsp, 0ffffffffffffe7ffh
     71#%fffffe800000601b 0f 22 dc                mov cr3, esp
     72
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette