Changeset 79662 in vbox for trunk/src/VBox/ValidationKit/testdriver
- Timestamp:
- Jul 10, 2019 8:40:51 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/txsclient.py
r79474 r79662 770 770 break; 771 771 if sInput: 772 oStdIn.uTxsClientCrc32 = zlib.crc32(sInput, oStdIn.uTxsClientCrc32);773 772 # Convert to a byte array before handing it of to sendMsg or the string 774 773 # will get some zero termination added breaking the CRC (and injecting 775 774 # unwanted bytes). 776 abInput = array.array('B', sInput); 775 abInput = array.array('B', sInput.encode('utf-8')); 776 oStdIn.uTxsClientCrc32 = zlib.crc32(abInput, oStdIn.uTxsClientCrc32); 777 777 rc = self.sendMsg('STDIN', (long(oStdIn.uTxsClientCrc32 & 0xffffffff), abInput)); 778 778 if rc is not True:
Note:
See TracChangeset
for help on using the changeset viewer.