VirtualBox

Ignore:
Timestamp:
Aug 12, 2021 5:27:22 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146280
Message:

Audio/ValKit: Fixes for tdAudioTest.py to disable the guest and host firewalls to let VKAT / ATS through (and to not make the tests hang in such cases). ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r90666 r90668  
    241241        if   sOsType == 'vista': # pylint: disable=no-else-return
    242242             # Vista and up.
    243             return (['netsh', 'advfirewall', 'set', 'allprofiles', 'state', 'off']);
     243            return (['netsh.exe', 'advfirewall', 'set', 'allprofiles', 'state', 'off']);
    244244        elif sOsType == 'xp':   # Older stuff (XP / 2003).
    245             return(['netsh', 'firewall', 'set', 'opmode', 'mode=DISABLE']);
     245            return(['netsh.exe', 'firewall', 'set', 'opmode', 'mode=DISABLE']);
    246246        # Not supported / available.
    247247        return [];
     
    457457
    458458        # Disable any OS-specific firewalls preventing VKAT / ATS to run.
    459         self.disableHstFirewall();
    460         self.disableGstFirewall(oTestVm, oTxsSession);
     459        fRc = self.disableHstFirewall();
     460        fRc = self.disableGstFirewall(oTestVm, oTxsSession) and fRc;
     461
     462        if not fRc:
     463            return False;
    461464
    462465        # First try to kill any old VKAT / VBoxAudioTest processes lurking around on the host.
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