Bug 464784 - Python UnicodeDecodeError during CDROM or Network tests in HTS
Summary: Python UnicodeDecodeError during CDROM or Network tests in HTS
Keywords:
Status: CLOSED DUPLICATE of bug 471236
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (harness)
Version: 5.2
Hardware: ia64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Lawrence Lim
URL: http://mail.python.org/pipermail/pyth...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-30 14:17 UTC by Gary Smith
Modified: 2014-03-26 00:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-21 15:48:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Gary Smith 2008-09-30 14:17:09 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1

The device.py script doesn't appear to handle non-ascii characters in device names properly.



Reproducible: Sometimes

Steps to Reproduce:
1. Plug in "Microsoft Wheel Mouse" (as an example of hardware with non-ascii chars in device name).
2. Run the CDROM or Network tests in HTS.
3. Error is generated.
4. Removal of mouse and re-running, runs tests successfully.
Actual Results:  
loaded configuration /var/hts/config.xml
loaded plan /var/hts/plan.xml
skipping cdrom - disabled
skipping usb - disabled
running network on /org/freedesktop/Hal/devices/net_00_0e_0c_c1_a2_27
Traceback (most recent call last):
  File "/usr/bin/hts", line 55, in ?
    success = hts.do(args)
  File "/usr/share/hts/lib/hts/hardwaretest.py", line 172, in do
    result = self.doCertify()
  File "/usr/share/hts/lib/hts/hardwaretest.py", line 373, in doCertify
    run.setKudzuLog(kudzu.dumpDevice(logicalDeviceName=test.getLogicalDeviceName()))
  File "/usr/share/hts/lib/hts/htskudzu.py", line 62, in dumpDevice
    if device.hasPropertyValue(logicalDeviceName):
  File "/usr/share/hts/lib/hts/device.py", line 65, in hasPropertyValue
    if hasValue in value:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 29: ordinal not in range(128)


Expected Results:  
device.py should be able to store non-ascii values and not produce errors because of non-ascii characters.

Comment 3 Greg Nichols 2008-11-21 15:48:45 UTC

*** This bug has been marked as a duplicate of bug 471236 ***


Note You need to log in before you can comment on or make changes to this bug.