Merge lp:~psivaa/ubuntu-server-iso-testing/vmlinuz_rename_for_amd64 into lp:ubuntu-server-iso-testing

Proposed by Para Siva
Status: Merged
Merged at revision: 265
Proposed branch: lp:~psivaa/ubuntu-server-iso-testing/vmlinuz_rename_for_amd64
Merge into: lp:ubuntu-server-iso-testing
Diff against target: 31 lines (+5/-2)
1 file modified
run-test.py (+5/-2)
To merge this branch: bzr merge lp:~psivaa/ubuntu-server-iso-testing/vmlinuz_rename_for_amd64
Reviewer Review Type Date Requested Status
Jean-Baptiste Lallement Approve
Para Siva (community) Abstain
Review via email: mp+138249@code.launchpad.net

Description of the change

vmlinuz file for amd64 has been renamed to vmlinuz.efi. The fix is to check if the arch is amd64 and change the kernel name accordingly. Thanks

To post a comment you must log in.
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Could you move this to the function set_config() where specific settings for variants are defined.
You might need to add an optional parameter to pass the architecture to this function too.

review: Needs Fixing
263. By Para Siva

Fix for the vmlinuz renaming with corrections

Revision history for this message
Para Siva (psivaa) wrote :

Thanks for the comments. Makes real sense. I changed the code accordingly and tested with precise desktop and server images. Would be good if you could review this. Thanks

review: Needs Resubmitting
Revision history for this message
Para Siva (psivaa) :
review: Abstain
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Looks good, approved. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'run-test.py'
--- run-test.py 2012-08-28 09:18:12 +0000
+++ run-test.py 2012-12-06 18:11:22 +0000
@@ -40,7 +40,8 @@
4040
41logging.basicConfig(level=logging.DEBUG)41logging.basicConfig(level=logging.DEBUG)
4242
43def set_config(variant = 'server'):43
44def set_config(variant='server', arch='i386'):
44 """ Set parameters specific to a variant """45 """ Set parameters specific to a variant """
45 global DEFAULT_TMPL_DIR, DEFAULT_TEST_TIMEOUT, DISK_SIZE, COMPRESS_CMD,\46 global DEFAULT_TMPL_DIR, DEFAULT_TEST_TIMEOUT, DISK_SIZE, COMPRESS_CMD,\
46 UNCOMPRESS_CMD, KERNEL_DIR, INITRD, KERNEL, PRESEED47 UNCOMPRESS_CMD, KERNEL_DIR, INITRD, KERNEL, PRESEED
@@ -54,6 +55,8 @@
54 UNCOMPRESS_CMD = "lzcat -S lz "55 UNCOMPRESS_CMD = "lzcat -S lz "
55 KERNEL_DIR = "casper"56 KERNEL_DIR = "casper"
56 INITRD = "initrd.lz"57 INITRD = "initrd.lz"
58 if arch == 'amd64':
59 KERNEL = "vmlinuz.efi"
57 elif variant in ('alternate', 'netboot'):60 elif variant in ('alternate', 'netboot'):
58 DEFAULT_TMPL_DIR = "/usr/share/ubuntu-iso-testing/templates.alternate"61 DEFAULT_TMPL_DIR = "/usr/share/ubuntu-iso-testing/templates.alternate"
59 DEFAULT_TEST_TIMEOUT = 360062 DEFAULT_TEST_TIMEOUT = 3600
@@ -179,7 +182,7 @@
179logging.info('Sleeping for %d seconds (LP: #961217)', START_DELAY)182logging.info('Sleeping for %d seconds (LP: #961217)', START_DELAY)
180time.sleep(START_DELAY)183time.sleep(START_DELAY)
181184
182set_config(options.variant)185set_config(options.variant, options.arch)
183# Get all environment variable for general test configuration186# Get all environment variable for general test configuration
184global TMPL_DIR187global TMPL_DIR
185if options.test_dir:188if options.test_dir:

Subscribers

People subscribed via source and target branches