VirtualBox

Changeset 79246 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 19, 2019 3:16:07 PM (6 years ago)
Author:
vboxsync
Message:

tdAddGuestCtrl.py: pylint and some other adjustments. bugref:9151 bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r79228 r79246  
    21782178                oGuestSession.processCreate(sCmd,
    21792179                                            asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:], [],
    2180                                             [ vboxcon.ProcessCreateFlag_WaitForStdOut ], \
    2181                                             30 * 1000);
     2180                                            [ vboxcon.ProcessCreateFlag_WaitForStdOut ], 30 * 1000);
    21822181                # Note: Use a timeout in the call above for not letting the stale processes
    21832182                #       hanging around forever.  This can happen if the installed Guest Additions
     
    27942793            # More unusual stuff.
    27952794            [ tdTestDirCreate(sDirectory = oTestVm.pathJoin('..', '.') ), tdTestResultFailure() ],
     2795            [ tdTestDirCreate(sDirectory = oTestVm.pathJoin('..', '..') ), tdTestResultFailure() ],
     2796            [ tdTestDirCreate(sDirectory = '..' ), tdTestResultFailure() ],
     2797            [ tdTestDirCreate(sDirectory = '../' ), tdTestResultFailure() ],
     2798            [ tdTestDirCreate(sDirectory = '../../' ), tdTestResultFailure() ],
     2799            [ tdTestDirCreate(sDirectory = '/' ), tdTestResultFailure() ],
     2800            [ tdTestDirCreate(sDirectory = '/..' ), tdTestResultFailure() ],
     2801            [ tdTestDirCreate(sDirectory = '/../' ), tdTestResultFailure() ],
    27962802        ];
    2797         if True: #self.oTstDrv.fpApiVer > 5.2:
    2798             atTests.extend([
    2799                 [ tdTestDirCreate(sDirectory = oTestVm.pathJoin('..', '..') ), tdTestResultFailure() ],
    2800                 [ tdTestDirCreate(sDirectory = '..' ), tdTestResultFailure() ],
    2801                 [ tdTestDirCreate(sDirectory = '../' ), tdTestResultFailure() ],
    2802                 [ tdTestDirCreate(sDirectory = '../../' ), tdTestResultFailure() ],
    2803             ]);
    2804 
    28052803        if oTestVm.isWindows() or oTestVm.isOS2():
    28062804            atTests.extend([
     
    28152813                [ tdTestDirCreate(sDirectory = '\\\\uncrulez\\foo' ), tdTestResultFailure() ],
    28162814            ]);
    2817         else:
    2818             atTests.extend([
    2819                 [ tdTestDirCreate(sDirectory = '/' ), tdTestResultFailure() ],
    2820                 [ tdTestDirCreate(sDirectory = '/..' ), tdTestResultFailure() ],
    2821                 [ tdTestDirCreate(sDirectory = '/../' ), tdTestResultFailure() ],
    2822             ]);
    28232815        atTests.extend([
    28242816            # Existing directories and files.
     
    28262818            [ tdTestDirCreate(sDirectory = self.getGuestSystemShell(oTestVm) ), tdTestResultFailure() ],
    28272819            [ tdTestDirCreate(sDirectory = self.getGuestSystemFileForReading(oTestVm) ), tdTestResultFailure() ],
    2828         ]);
    2829 
    2830         atTests.extend([
    28312820            # Creating directories.
    28322821            [ tdTestDirCreate(sDirectory = sScratch ), tdTestResultSuccess() ],
Note: See TracChangeset for help on using the changeset viewer.

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