VirtualBox

Changeset 97437 in vbox


Ignore:
Timestamp:
Nov 7, 2022 6:50:23 PM (2 years ago)
Author:
vboxsync
Message:

Validation Kit/testfileset.py: Added a "cross" minimum style for having a lowest common denominator for all supported platforms.

File:
1 edited

Legend:

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

    r96407 r97437  
    320320        if asCompatibleWith is not None:
    321321            for sOs in asCompatibleWith:
    322                 assert sOs in ('win', 'os2', 'darwin', 'linux', 'solaris',), sOs;
     322                assert sOs in ('win', 'os2', 'darwin', 'linux', 'solaris', 'cross'), sOs;
    323323            if 'os2' in asCompatibleWith:
    324324                self.sMinStyle      = 'os2';
    325325            elif 'win' in asCompatibleWith:
    326326                self.sMinStyle      = 'win';
     327            # 'cross' marks a lowest common denominator for all supported platforms.
     328            # Used for Guest Control testing.
     329            elif 'cross' in asCompatibleWith:
     330                self.sMinStyle      = 'cross';
    327331        self.sBasePath          = sBasePath;
    328332        self.sSubDir            = sSubDir;
     
    347351            for ch in self.ksReservedWinOS2:
    348352                self.sFileCharset     = self.sFileCharset.replace(ch, '');
    349         else:
     353        elif self.sMinStyle in ('darwin', 'linux', 'solaris'):
    350354            self.sReservedTrailing    = self.ksReservedTrailingUnix;
    351355            for ch in self.ksReservedUnix:
    352356                self.sFileCharset     = self.sFileCharset.replace(ch, '');
     357        else: # 'cross'
     358            # Filter out all reserved charsets from all platforms.
     359            for ch in self.ksReservedWinOS2:
     360                self.sFileCharset     = self.sFileCharset.replace(ch, '');
     361            for ch in self.ksReservedUnix:
     362                self.sFileCharset     = self.sFileCharset.replace(ch, '');
     363            self.sReservedTrailing    = self.ksReservedTrailingWinOS2 \
     364                                      + self.ksReservedTrailingUnix;
    353365        # More spaces and dot:
    354366        self.sFileCharset            += '   ...';
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