VirtualBox

Changeset 70575 in vbox


Ignore:
Timestamp:
Jan 13, 2018 2:28:28 PM (7 years ago)
Author:
vboxsync
Message:

ValidationKit: More python 3 adjustments.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/common/utils.py

    r70569 r70575  
    859859            pass;
    860860    else:
    861         if sys.platform in ('linux2', ):
     861        if sys.platform in ('linux2', 'linux', 'linux3', 'linux4', 'linux5', 'linux6'):
    862862            asPsCmd = ['/bin/ps',     '-p', '%u' % (uPid,), '-o', 'fname='];
    863863        elif sys.platform in ('sunos5',):
  • trunk/src/VBox/ValidationKit/testdriver/base.py

    r70521 r70575  
    287287        fRc = winbase.processCheckPidAndName(uPid, sName);
    288288    else:
    289         if sys.platform in ('linux2', ):
     289        sOs = utils.getHostOs();
     290        if sOs == 'linux':
    290291            asPsCmd = ['/bin/ps',     '-p', '%u' % (uPid,), '-o', 'fname='];
    291         elif sys.platform in ('sunos5',):
     292        elif sOs == 'solaris':
    292293            asPsCmd = ['/usr/bin/ps', '-p', '%u' % (uPid,), '-o', 'fname='];
    293         elif sys.platform in ('darwin',):
     294        elif sOs == 'darwin':
    294295            asPsCmd = ['/bin/ps',     '-p', '%u' % (uPid,), '-o', 'ucomm='];
    295296        else:
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r70573 r70575  
    10701070                #
    10711071                iPipeR, iPipeW = os.pipe();
     1072                if hasattr(os, 'set_inheritable'):
     1073                    os.set_inheritable(iPipeW, fTrue);             # pylint: disable=no-member
    10721074                os.environ['NSPR_INHERIT_FDS'] = 'vboxsvc:startup-pipe:5:0x%x' % (iPipeW,);
    10731075                reporter.log2("NSPR_INHERIT_FDS=%s" % (os.environ['NSPR_INHERIT_FDS']));
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