| OLD | NEW | 
| (Empty) |  | 
 |   1 AUTHOR = "Autotest Team <autotest@test.kernel.org>" | 
 |   2 TIME = "SHORT" | 
 |   3 NAME = "Sample - Parallel dd with kernel build - patch verification" | 
 |   4 TEST_TYPE = "client" | 
 |   5 TEST_CLASS = "Kernel" | 
 |   6 TEST_CATEGORY = "Functional" | 
 |   7  | 
 |   8 DOC = """ | 
 |   9 Parallel dd test with kernel build with the objective of seeing (or not) | 
 |  10 differences after a patch is applied to the mainline kernel. | 
 |  11 """ | 
 |  12  | 
 |  13 def tests(tag): | 
 |  14     partition = job.partition('/tmp/looped', 1024, job.tmpdir) | 
 |  15     # You can use also 'real' partitions, just comment the above and uncomment | 
 |  16     # the below | 
 |  17     #partition = job.partition('/dev/sdb1', job.tmpdir) | 
 |  18  | 
 |  19     job.run_test('parallel_dd', fs=partition, fs_type='ext4', iterations=1, | 
 |  20                  megabytes=1000, streams=2, tag=tag) | 
 |  21  | 
 |  22  | 
 |  23 def step_init(): | 
 |  24     testkernel = job.kernel('/usr/src/linux-2.6.36.tar.bz2') | 
 |  25     testkernel.config('/usr/src/config') | 
 |  26     testkernel.build() | 
 |  27     job.next_step([step_one]) | 
 |  28     testkernel.boot() | 
 |  29  | 
 |  30  | 
 |  31 def step_one(): | 
 |  32     tests('mainline') | 
 |  33     testkernel = job.kernel('/usr/src/linux-2.6.36.tar.bz2') | 
 |  34     testkernel.patch('/usr/src/ext4_patch') | 
 |  35     testkernel.config('/usr/src/config') | 
 |  36     testkernel.build() | 
 |  37     job.next_step([step_two]) | 
 |  38     testkernel.boot() | 
 |  39  | 
 |  40  | 
 |  41 def step_two(): | 
 |  42     tests('post_patch') | 
| OLD | NEW |