VirtualBox

Changeset 92875 in vbox


Ignore:
Timestamp:
Dec 11, 2021 11:21:13 AM (3 years ago)
Author:
vboxsync
Message:

ValKit/tdAddGuestCtrl.py: Fixed regression from r148744 which assumed afFlags were always lists and didn't account for they defaulting to None. [missed a bit] bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r92868 r92875  
    18431843            if self.oTstDrv.fpApiVer >= 7.0:
    18441844                ## @todo Make the following new flags implicit for 7.0 for now. Develop dedicated tests for this later and remove.
    1845                 if vboxcon.DirectoryCopyFlag_Recursive not in oTest.afFlags:
    1846                     oTest.afFlags.extend([ vboxcon.DirectoryCopyFlag_Recursive ]);
     1845                if not oTest.afFlags:
     1846                    oTest.afFlags = [ vboxcon.DirectoryCopyFlag_Recursive, ];
     1847                elif vboxcon.DirectoryCopyFlag_Recursive not in oTest.afFlags:
     1848                    oTest.afFlags.append(vboxcon.DirectoryCopyFlag_Recursive);
    18471849                ## @todo Ditto.
    1848                 if vboxcon.DirectoryCopyFlag_FollowLinks not in oTest.afFlags:
    1849                     oTest.afFlags.extend([ vboxcon.DirectoryCopyFlag_FollowLinks ]);
     1850                if not oTest.afFlags:
     1851                    oTest.afFlags = [ vboxcon.DirectoryCopyFlag_FollowLinks, ];
     1852                elif vboxcon.DirectoryCopyFlag_FollowLinks not in oTest.afFlags:
     1853                    oTest.afFlags.append(vboxcon.DirectoryCopyFlag_FollowLinks);
    18501854            oCurProgress = oGuestSession.directoryCopyFromGuest(oTest.sSrc, oTest.sDst, oTest.afFlags);
    18511855        except:
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