Merge lp:~xnox/utah/test-server-squashfs into lp:utah

Proposed by Dimitri John Ledkov
Status: Merged
Approved by: Max Brustkern
Approved revision: no longer in the source branch.
Merged at revision: 862
Proposed branch: lp:~xnox/utah/test-server-squashfs
Merge into: lp:utah
Diff against target: 65 lines (+17/-6)
2 files modified
debian/changelog (+4/-0)
utah/isotest/iso_static_validation.py (+13/-6)
To merge this branch: bzr merge lp:~xnox/utah/test-server-squashfs
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
Dimitri John Ledkov (community) Needs Resubmitting
Review via email: mp+157686@code.launchpad.net

Commit message

static-validation: test squashfs on the server

To post a comment you must log in.
Revision history for this message
Max Brustkern (nuclearbob) wrote :

The current precise daily server i386 image (md5sum 3399c37b03637c9108303be3f5019445) does not contain an install/filesystem.squashfs file. We may want the decorator to be something like:
@unittest.skipUnless(ubiquity_image or (st_variant == 'server' && st_release > 'precise'), "Skipping for alternate images.")

The current decorator will also skip netboot/mini images, so the "Skipping for alternate images." comment may be too specific, but I don't know if we can or do validate those with this tool anyway.

lp:~xnox/utah/test-server-squashfs updated
855. By Max Brustkern

Merged docstring updates

856. By Max Brustkern

Adding wait_for_booted change

857. By Max Brustkern

Deprecated run scripts

858. By Max Brustkern

Fixed LP #1158743

859. By Max Brustkern

Fixed issue running nosetests on directory

860. By Max Brustkern

Added docstring to setup file

861. By Max Brustkern

Fixing call to sshcheck that doesn't match function signature

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Tightened the check on the decorator & updated the comment to be more precise.

review: Needs Resubmitting
lp:~xnox/utah/test-server-squashfs updated
862. By Dimitri John Ledkov

Wubi _is_ shipped in raring

Revision history for this message
Max Brustkern (nuclearbob) wrote :

Looks good, thanks.

review: Approve
Revision history for this message
Max Brustkern (nuclearbob) wrote :

Actually, one more thing. Do you mind adding a debian changelog entry so that it'll be attributed correctly to you? We're developing version 0.11.0 now. Thanks!

Revision history for this message
Max Brustkern (nuclearbob) wrote :

Actually, it looks like the next version should be 0.11ubuntu1 by our current scheme. Sorry for the confusion.

lp:~xnox/utah/test-server-squashfs updated
863. By Dimitri John Ledkov

Check squashfs on the server images as well during ISO static
validation.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I did a catch up from trunk and added changelog entry, the current one is still marked unreleased....

Revision history for this message
Max Brustkern (nuclearbob) wrote :

Thanks. We've had some discussions about the best way to handle that since we're not in the archive and probably won't be any time soon, but we are a native package. I'll see if I can find the mailing list stuff and forward it to you, and if you want to send anything to the list about it, feel free, I think we could use more voices on the topic that are as well-versed in debian specifics as you are.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-04-10 15:42:26 +0000
3+++ debian/changelog 2013-04-15 21:13:27 +0000
4@@ -32,6 +32,10 @@
5 [ Andy Doan ]
6 * Log process that has machine reserved. (LP: #1158743)
7
8+ [ Dmitrijs Ledkovs ]
9+ * Check squashfs on the server images as well during ISO static
10+ validation.
11+
12 -- Max Brustkern <max@canonical.com> Wed, 10 Apr 2013 11:06:41 -0400
13
14 utah (0.9.2ubuntu1) quantal; urgency=low
15
16=== modified file 'utah/isotest/iso_static_validation.py'
17--- utah/isotest/iso_static_validation.py 2013-04-04 14:55:25 +0000
18+++ utah/isotest/iso_static_validation.py 2013-04-15 21:13:27 +0000
19@@ -314,10 +314,6 @@
20 self.assertEqual(stderr, '')
21 files_list = open(os.path.join(DATA_PATH, 'file_list_ubiquity'))
22 exclude_files = []
23- if self.st_release >= 'r':
24- # wubi is not shipped in raring
25- exclude_files.append('autorun.inf')
26- exclude_files.append('wubi.exe')
27 logging.debug('Check if relevant files are present in the iso')
28 for list_server in files_list:
29 path = list_server.rstrip()
30@@ -385,7 +381,9 @@
31 self.assertEqual(stderr, '')
32 self.assertIn('Linux kernel', stdout)
33
34- @unittest.skipUnless(ubiquity_image, "Skipping for non ubiquity images")
35+ @unittest.skipUnless(ubiquity_image or
36+ (st_variant == 'server' and st_release > 'precise'),
37+ "Skipping for d-i images without squashfs.")
38 def test_filesystem_squashfs(self):
39 """Test if filesystem.squashfs is present and its contents.
40
41@@ -393,7 +391,12 @@
42
43 """
44 logging.debug('Extracting the filesystem.squashfs')
45- squashfs_path = self.iso.extract('casper/filesystem.squashfs',
46+ if ubiquity_image:
47+ squashfs_name = 'casper/filesystem.squashfs'
48+ else:
49+ squashfs_name = 'install/filesystem.squashfs'
50+
51+ squashfs_path = self.iso.extract(squashfs_name,
52 self.temp_dir)
53 logging.debug('Checking the file is an actual .squashfs')
54 cmd = ["file", squashfs_path]
55@@ -404,6 +407,10 @@
56 self.assertEqual(stderr, '')
57 self.assertIn("Squashfs filesystem", stdout)
58
59+ # Skipping vmlinuz image extraction on server images
60+ if not ubiquity_image:
61+ return
62+
63 #unsquashfs extracts only in pwd
64 cwd = os.getcwd()
65 try:

Subscribers

People subscribed via source and target branches