#186: Automate media kit sanity tests --------------------+------------------------------------------------------- Reporter: jlaska | Owner: lili Type: task | Status: new Priority: major | Milestone: Automate installation test plan Component: tests | Version: 1.0 Keywords: | --------------------+------------------------------------------------------- This ticket is intended to track automating the mediakit sanity tests (http://fedoraproject.org/wiki/Category:Installer_Image_Sanity_Test_Cases).
Discussion already underway, along with code in Liam's private branch. For details see https://fedorahosted.org/pipermail/autoqa- devel/2010-June/000595.html
#186: Automate media kit sanity tests ---------------------+------------------------------------------------------ Reporter: jlaska | Owner: lili Type: task | Status: new Priority: major | Milestone: Automate installation test plan Component: tests | Version: 1.0 Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by robatino):
* cc: robatino (added)
#186: Automate media kit sanity tests ---------------------+------------------------------------------------------ Reporter: jlaska | Owner: lili Type: task | Status: new Priority: major | Milestone: Automate installation test plan Component: tests | Version: 1.0 Resolution: | Keywords: ---------------------+------------------------------------------------------ Comment (by robatino):
Make sure to use IEC units for the CD size, and SI units for the other media, as indicated in the test description. It appears that currently you're using SI units for everything. It's common for the CD ISO to be exactly 700 MiB = 734003200 bytes, which fits, so I adjusted the test to allow for this by changing < to <= (and made the same change for the other media).
You might want to consider adding a test which would only generate a warning, to see if the actual ISO size matches the size indicated by the ISO header. (See https://bugzilla.redhat.com/show_bug.cgi?id=585006 .) The rawread script at https://fedoraproject.org/wiki/File:Rawread.sh contains code to read the blocksize and blockcount from the ISO header. The ISO header size is just blocksize*blockcount.
#186: Automate media kit sanity tests ---------------------+------------------------------------------------------ Reporter: jlaska | Owner: lili Type: task | Status: new Priority: major | Milestone: Automate installation test plan Component: tests | Version: 1.0 Resolution: | Keywords: ---------------------+------------------------------------------------------ Comment (by liam):
The reason why we are checking the size of ISO is we should make sure the testers can burn the ISO to physical media. As we know the capacity of CDROM is 700M, DVD is 4.7G, we get the bytes of file via os.path.getsize(file),the transform to kb: os.path.getsize(file)/1024, to Mb: os.path.getsize(file)/1024/1024, we will find that 734003200/1024/1024=700. So I think I should have a more accurate transformation in my test. Thanks for your comments.
#186: Automate media kit sanity tests ---------------------+------------------------------------------------------ Reporter: jlaska | Owner: lili Type: task | Status: new Priority: major | Milestone: Automate installation test plan Component: tests | Version: 1.0 Resolution: | Keywords: ---------------------+------------------------------------------------------ Comment (by robatino):
capacity of a CD = 700 MiB = 734003200 bytes (IEC units)
capacity of a DVD = 4.7 GB = 4700000000 bytes (SI units)
capacity of a 1 GB flash drive = 1000000000 bytes (SI units)
So if you want to convert to larger units, you need to convert separately to kB and KiB:
size_kB = os.path.getsize(file)/1000
size_KiB = os.path.getsize(file)/1024
and similarly for MB and MiB, and GB and GiB. It's probably simpler to just use the size in bytes directly, to avoid the extra arithmetic, and not have to worry about rounding/truncation.
#186: Automate media kit sanity tests ---------------------+------------------------------------------------------ Reporter: jlaska | Owner: lili Type: task | Status: new Priority: major | Milestone: Automate installation test plan Component: tests | Version: 1.0 Resolution: | Keywords: ---------------------+------------------------------------------------------ Comment (by liam):
Interesting, the DVD can hold 4700000000 bytes,not 4.7GB if we use 1024 to transform.And the same as flash drive. Actually, CD can hold 734003200 bytes,equal to 700M,if use 1024 to transform.It's good idea to use bytes to scale the capacity of media,that would not confuse us. :) I did some modifications to the test correspondingly. Thanks for pointing this out, robatino.
#186: Automate media kit sanity tests ---------------------+------------------------------------------------------ Reporter: jlaska | Owner: liam Type: task | Status: new Priority: major | Milestone: Automate installation test plan Component: tests | Version: 1.0 Resolution: | Keywords: ---------------------+------------------------------------------------------ Changes (by jlaska):
* owner: lili => liam
#186: Automate media kit sanity tests --------------------+------------------------------------------------------- Reporter: jlaska | Owner: hongqing Type: task | Status: assigned Priority: major | Milestone: Automate installation test plan Component: tests | Resolution: Keywords: | --------------------+------------------------------------------------------- Changes (by hongqing):
* owner: => hongqing * status: new => assigned
#186: Automate media kit sanity tests --------------------+------------------------------------------------------- Reporter: jlaska | Owner: hongqing Type: task | Status: assigned Priority: major | Milestone: 0.8.0 Component: tests | Resolution: Keywords: | --------------------+------------------------------------------------------- Changes (by kparal):
* milestone: Automate installation test plan => 0.8.0
#186: Automate media kit sanity tests --------------------+--------------------------- Reporter: jlaska | Owner: hongqing Type: task | Status: assigned Priority: major | Milestone: Future tasks Component: tests | Resolution: Keywords: | Blocked By: Blocking: | --------------------+--------------------------- Changes (by kparal):
* milestone: 0.8.0 => Future tasks
Comment:
This won't go into 0.8. Changing milestone.
autoqa-devel@lists.fedorahosted.org