VirtualBox

Ignore:
Timestamp:
Feb 5, 2018 9:43:30 AM (7 years ago)
Author:
vboxsync
Message:

ValidationKit/tdMoveMedium: Reinstate path comparison on Windows host by making it not rely on platform spectic fucnctions, assuming abspath doing separator normalization etc., in case the API isn't lint free.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/api/tdMoveMedium1.py

    r70857 r70858  
    9090            sFilePath = os.path.join(sLocation, asFiles[oAttachment.port])
    9191            sActualFilePath = oAttachment.medium.location
    92             # @todo os.path.samefile() is not available on Windows in python 2.x
    93             if     sys.platform != 'win32' \
    94                and not os.path.samefile(sFilePath, sActualFilePath):
     92            if os.path.abspath(sFilePath) != os.path.abspath(sActualFilePath):
    9593                reporter.log('medium location expected to be "%s" but is "%s"' % (sFilePath, sActualFilePath))
    9694                fRc = False;
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