VirtualBox

Changeset 106827 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Nov 5, 2024 8:57:46 AM (2 months ago)
Author:
vboxsync
Message:

Validation Kit/vboxinstaller: Fixed uninitialized rc on unsupported hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py

    r106826 r106827  
    538538        # Go to system specific installation code.
    539539        #
    540         sHost = utils.getHostOs()
     540        sHost = utils.getHostOs();
    541541        if   sHost == 'darwin':     fRc = self._installVBoxOnDarwin();
    542542        elif sHost == 'linux':      fRc = self._installVBoxOnLinux();
     
    545545        else:
    546546            reporter.error('Unsupported host "%s".' % (sHost,));
     547            fRc = False;
    547548        if fRc is False:
    548549            reporter.testFailure('Installation error.');
     
    574575        reporter.testStart('Uninstalling VirtualBox');
    575576
    576         sHost = utils.getHostOs()
     577        sHost = utils.getHostOs();
    577578        if   sHost == 'darwin':     fRc = self._uninstallVBoxOnDarwin();
    578579        elif sHost == 'linux':      fRc = self._uninstallVBoxOnLinux();
     
    581582        else:
    582583            reporter.error('Unsupported host "%s".' % (sHost,));
     584            fRc = None; # To make pylint happy.
    583585        if fRc is False and not fIgnoreError:
    584586            reporter.testFailure('Uninstallation failed.');
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