VirtualBox

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


Ignore:
Timestamp:
May 13, 2020 11:03:58 AM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddSharedFolders1.py: Work around some oddities (build issue, bug?) wrt FsPerf not being executable on the combined .ISO created by fs/isomakercmd, by first copying the desired executable to the guest's temp first, make it executable and run from there.

File:
1 edited

Legend:

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

    r84278 r84282  
    289289            fISOMakerCmdIsBuggy = oTestVm.isLinux();
    290290            if fISOMakerCmdIsBuggy:
     291                sFsPerfImage = "FsPerf${EXESUFF}";
    291292                if oTestVm.isWindows() \
    292293                or oTestVm.isOS2():
    293                     sFsPerfPathTemp = "C:\\Temp\\";
    294                     sCopy           = "cmd.exe";
    295                     sCopyArgs       = ( "/C", "copy", "/Y" );
     294                    sFsPerfPathTemp = "C:\\Temp\\" + sFsPerfImage;
     295                    sCopy           = "C:\\Windows\\System32\\cmd.exe";
     296                    sCopyArgs       = ( sCopy, "/C", "copy", "/Y",  sFsPerfPath, sFsPerfPathTemp );
    296297                else:
    297                     sFsPerfPathTemp = "/var/tmp/";
    298                     sCopy           = "cp";
    299                     sCopyArgs       = ( "-a", "-v" );
    300                 sFsPerfPathTemp += "FsPerf${EXESUFF}";
     298                    sFsPerfPathTemp = "/var/tmp/" + sFsPerfImage;
     299                    sCopy           = "/bin/cp";
     300                    sCopyArgs       = ( sCopy, "-a", "-v", sFsPerfPath, sFsPerfPathTemp );
    301301                fRc = self.oTstDrv.txsRunTest(oTxsSession, 'Copying FsPerf', 60 * 1000,
    302                                               sCopy, ( sCopy, sCopyArgs, sFsPerfPath, sFsPerfPathTemp ),
    303                                               fCheckSessionStatus = True);
     302                                              sCopy, sCopyArgs, fCheckSessionStatus = True);
    304303                fRc = fRc and oTxsSession.syncChMod(sFsPerfPathTemp, 0o755);
    305304                if fRc:
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