Bug 755787 - RFE: rebase CD/DVD/Blu-ray tests
Summary: RFE: rebase CD/DVD/Blu-ray tests
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (tests)
Version: 1.4
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Caspar Zhang
QA Contact: Guangze Bai
URL:
Whiteboard:
Depends On:
Blocks: 767775 773757
TreeView+ depends on / blocked
 
Reported: 2011-11-22 03:26 UTC by Caspar Zhang
Modified: 2015-02-08 21:37 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No tech note needed.
Clone Of:
Environment:
Last Closed: 2012-06-05 21:36:48 UTC


Attachments (Terms of Use)
01-opticalDiskTest.patch (21.21 KB, patch)
2011-11-22 09:06 UTC, Caspar Zhang
no flags Details | Diff
02-cdrom.patch (7.07 KB, patch)
2011-11-22 09:06 UTC, Caspar Zhang
no flags Details | Diff
03-dvd.patch (8.50 KB, patch)
2011-11-22 09:06 UTC, Caspar Zhang
no flags Details | Diff
04-bluray.patch (7.73 KB, patch)
2011-11-22 09:07 UTC, Caspar Zhang
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0711 0 normal SHIPPED_LIVE v7 bug fix and enhancement update 2012-06-06 01:26:37 UTC

Description Caspar Zhang 2011-11-22 03:26:40 UTC
Description of problem:

Current CD/DVD/Blu-ray test processes are different:

CD:
  InitializeDeviceInfo()->
  (old codes of confirmation) ->
  testDisk()

DVD:
  InitializeDeviceInfo()->
  getMediaChoice()->
  testDisk()

Bluray:
  InitializeDeviceInfo()->
  getMediaChoice()->
  echoTest()->
  checkMediaType()->
  testDisk()

Here we get some problems, e.g. in bluray test, the tray will be opened and closed twice, which is not necessary.

Version-Release number of selected component (if applicable):
1.4 R38

Additional info:

Comment 1 Caspar Zhang 2011-11-22 07:55:30 UTC
Now I've composed a initial version of patch to update cdrom/dvd/bluray tests and opticalDiskTest.py

In my patch, I did the following changes:

1. move echoTest() and checkMediaType() to opticalDiskTest

  echoTest() is enabled in cdrom/dvd/bluray tests.

  echoTest() takes over the request of putting a disk into device; so I 
  removed the similar codes to ask user to insert a disk in testDisk() 
  function. 

  This change avoids opening the tray to ask user to put disk twice.

  checkMediaType() is enabled in bluray test and dvd+ part in dvd test.

  So I removed the check media part codes in rewriter() and writer() 
  functions in dvd test.

2. I make test sleep for 25 seconds after everytime tray closed. This solves bug 707144

3. I re-adjusted bluray test sequence to bd-re, bd-r, bd. This solves bug 754919

Patch is still under modification and testing. Will post it soon.

Comment 2 Caspar Zhang 2011-11-22 09:06:17 UTC
Created attachment 534951 [details]
01-opticalDiskTest.patch

Comment 3 Caspar Zhang 2011-11-22 09:06:37 UTC
Created attachment 534952 [details]
02-cdrom.patch

Comment 4 Caspar Zhang 2011-11-22 09:06:59 UTC
Created attachment 534953 [details]
03-dvd.patch

Comment 5 Caspar Zhang 2011-11-22 09:07:22 UTC
Created attachment 534954 [details]
04-bluray.patch

Comment 11 Caspar Zhang 2012-06-04 07:32:21 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No tech note needed.

Comment 13 errata-xmlrpc 2012-06-05 21:36:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0711.html


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