VirtualBox

Changeset 96555 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 30, 2022 8:08:17 AM (2 years ago)
Author:
vboxsync
Message:

Validation Kit: Added required MIME type handling for video (video/webm) uploads. bugref:8733

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

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

    r96407 r96555  
    963963            try:
    964964                self._doUploadFile(oSrcFile, sAltName, sDescription, sKind, 'image/png');
     965            finally:
     966                g_oLock.acquire();
     967        elif sKind.startswith('video/'):
     968            self.log(0, '*** Uploading "%s" - KIND: "%s" - DESC: "%s" ***'
     969                        % (sSrcFilename, sKind, sDescription),  sCaller, sTsPrf);
     970            self.xmlFlush();
     971            g_oLock.release();
     972            try:
     973                self._doUploadFile(oSrcFile, sAltName, sDescription, sKind, 'video/webm');
    965974            finally:
    966975                g_oLock.acquire();
  • trunk/src/VBox/ValidationKit/testmanager/core/testboxcontroller.py

    r96407 r96555  
    708708                          'application/octet-stream',
    709709                          'image/png', #'image/gif', 'image/jpeg',
    710                           #'video/webm', 'video/mpeg', 'video/mpeg4-generic',
     710                          'video/webm', #'video/mpeg', 'video/mpeg4-generic',
    711711                          ]:
    712712            raise TestBoxControllerException('Invalid MIME type "%s"' % (sMime,));
     
    953953            self._getStandardParams(dParams);
    954954        return self._dActions[self._sAction]();
    955 
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