VirtualBox

Ignore:
Timestamp:
Oct 11, 2023 2:32:28 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159465
Message:

ValKit: Simple algorithm for basic screenshot validation of a Windows VM (fix for python2 TypeError: unsupported operand types)

File:
1 edited

Legend:

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

    r101407 r101416  
    55005500        iThreshold = 20
    55015501        for i in range(0, cPixels, 4) :
    5502             iRed = aRGBData[i]
    5503             iGreen = aRGBData[i + 1]
    5504             iBlue = aRGBData[i + 2]
     5502            iRed = int(aRGBData[i])
     5503            iGreen = int(aRGBData[i + 1])
     5504            iBlue = int(aRGBData[i + 2])
    55055505            iBright = (3 * iRed + 6 * iGreen + iBlue) / 10
    55065506            if iThreshold < iBright < 255 - iThreshold :
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette