VirtualBox

Ignore:
Timestamp:
Feb 27, 2019 11:47:38 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129069
Message:

Guest Control/Validation Kit: Made all existing tests pass on Linux guests.

File:
1 edited

Legend:

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

    r77478 r77479  
    107107
    108108            ## @todo fix this so all VMs have several usable test users with the same passwords (or none).
    109             sUser     = 'test';
     109            if oTestVm.isWindows():
     110                sUser = 'Administrator';
     111            else:
     112                sUser = 'vbox';
    110113            sPassword = 'password';
    111             if oTestVm.isWindows():
    112                 #sPassword = ''; # stupid config mistake.
    113                 sPassword = 'password';
    114                 sUser     = 'Administrator';
    115114            sDomain   = '';
    116115
     
    16341633            sDomain = "";
    16351634            sFile = "C:\\windows\\system32\\kernel32.dll";
     1635        elif oTestVm.isLinux():
     1636            sUser = "vbox";
     1637            sPassword = "password";
     1638            sDomain = "";
     1639            sFile = "/bin/sh";
    16361640
    16371641        # Number of stale guest files to create.
     
    17701774            sCmd = "C:\\windows\\system32\\cmd.exe";
    17711775            aArgs = [sCmd,];
     1776        elif oTestVm.isLinux():
     1777            sUser = "vbox";
     1778            sPassword = "password";
     1779            sDomain = "";
     1780            sCmd = "/bin/sh";
     1781            aArgs = [sCmd,];
    17721782
    17731783        # Number of stale guest processes to create.
     
    18241834                if oTestVm.isWindows():
    18251835                    aArgs = [ sCmd, '/C', 'dir', '/S', 'C:\\Windows\\system'];
     1836                else:
     1837                    aArgs = [ sCmd, '-c', 'date'];
    18261838                reporter.log2('Starting non-stale processes');
    18271839                aaProcs = [];
     
    18741886                if oTestVm.isWindows():
    18751887                    aArgs = [ sCmd, '/C', 'dir', '/S', 'C:\\Windows'];
     1888                else:
     1889                    aArgs = [ sCmd ];
    18761890                reporter.log2('Starting blocking processes');
    18771891                aaProcs = [];
     
    19221936
    19231937        if oTestVm.isWindows():
    1924             # Outputting stuff.
    19251938            sImageOut = "C:\\windows\\system32\\cmd.exe";
    19261939        else:
    1927             reporter.error('Implement me!'); ## @todo Implement non-Windows bits.
    1928             return (False, oTxsSession);
     1940            sImageOut = "/bin/sh";
    19291941
    19301942        aaInvalid = [
     
    21712183
    21722184        if oTestVm.isWindows():
    2173             # Outputting stuff.
    21742185            sImage = "C:\\windows\\system32\\cmd.exe";
    21752186        else:
    2176             reporter.error('Implement me!'); ## @todo Implement non-Windows bits.
    2177             return (False, oTxsSession);
     2187            sImage = "/bin/sh";
    21782188
    21792189        aaTests = [];
     
    22732283            sUser = "vbox";
    22742284        sPassword = "password";
    2275         sDomain = "";
     2285        sDomain   = "";
    22762286
    22772287        if oTestVm.isWindows():
    2278             # Outputting stuff.
    22792288            sImage = "C:\\windows\\system32\\cmd.exe";
    22802289        else:
    2281             reporter.error('Implement me!'); ## @todo Implement non-Windows bits.
    2282             return (False, oTxsSession);
     2290            sImage = "/bin/sh";
    22832291
    22842292        fRc = True;
     
    23672375        if oTestVm.isWindows():
    23682376            sScratch  = "C:\\Temp\\vboxtest\\testGuestCtrlDirCreate\\";
     2377        else:
     2378            sScratch  = "/tmp/testGuestCtrlDirCreate/";
    23692379
    23702380        aaTests = [];
     
    24442454            sUser = "vbox";
    24452455        sPassword = "password";
    2446 
    2447         # if oTestVm.isWindows():
    2448         #     sScratch = "C:\\Temp\\vboxtest\\testGuestCtrlDirCreateTemp\\";
    24492456
    24502457        aaTests = [];
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