Merge ~rafaeldtinoco/ubuntu/+source/cloud-utils:lp1835124 into ubuntu/+source/cloud-utils:ubuntu/disco-devel

Proposed by Scott Moser
Status: Merged
Merge reported by: Scott Moser
Merged at revision: e9de3509560b0c952e6def92a9661c5cff57d505
Proposed branch: ~rafaeldtinoco/ubuntu/+source/cloud-utils:lp1835124
Merge into: ubuntu/+source/cloud-utils:ubuntu/disco-devel
Diff against target: 62 lines (+40/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/lp1842682-test-growpart-fix-logic-error-resulting-test-failure.patch (+32/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Scott Moser (community) Approve
git-ubuntu developers Pending
Review via email: mp+372420@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) :
review: Approve
Revision history for this message
Scott Moser (smoser) wrote :

I uploaded e9de3509560b0c952e6def92a9661c5cff57d505 which has version 0.31-0ubuntu1.2 to disco-proposed on 2019-06-06.

It is currently in the unapproved queue
 https://launchpad.net/ubuntu/disco/+queue?queue_state=1&queue_text=

 https://launchpadlibrarian.net/440570202/cloud-utils_0.31-0ubuntu1.2_source.changes

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 80d02dd..d8b6868 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+cloud-utils (0.31-0ubuntu1.2) disco; urgency=medium
7+
8+ * test-growpart: fix logic error resulting in test failure.
9+ [Scott Moser] (LP: #1842682)
10+
11+ -- Rafael David Tinoco <rafaeldtinoco@ubuntu.com> Fri, 06 Sep 2019 10:47:23 -0300
12+
13 cloud-utils (0.31-0ubuntu1.1) disco; urgency=medium
14
15 * fix race condition in test-growpart teardown seen on ppc64el (LP: #1836593)
16diff --git a/debian/patches/lp1842682-test-growpart-fix-logic-error-resulting-test-failure.patch b/debian/patches/lp1842682-test-growpart-fix-logic-error-resulting-test-failure.patch
17new file mode 100644
18index 0000000..6751703
19--- /dev/null
20+++ b/debian/patches/lp1842682-test-growpart-fix-logic-error-resulting-test-failure.patch
21@@ -0,0 +1,32 @@
22+From ef42f6b58505d9787f6583243ed7792b1a08d74b Mon Sep 17 00:00:00 2001
23+From: Scott Moser <smoser@brickies.net>
24+Date: Wed, 4 Sep 2019 10:50:09 -0400
25+Subject: [PATCH] test-growpart: fix logic error resulting in test failure.
26+
27+In test-growpart, the cleanup code should unmount if the tracking
28+variable "MP" has a non-empty value, not an empty value. An empty
29+value would indicate that the mount has *not* been done.
30+
31+This is a regression caused by bug 1835124.
32+
33+LP: #1842682
34+---
35+ test/test-growpart | 2 +-
36+ 1 file changed, 1 insertion(+), 1 deletion(-)
37+
38+diff --git a/test/test-growpart b/test/test-growpart
39+index 6df4b89..ecf2dd1 100755
40+--- a/test/test-growpart
41++++ b/test/test-growpart
42+@@ -28,7 +28,7 @@ clearparts() {
43+ udevadm settle
44+ }
45+ cleanup() {
46+- if [ -z "$MP" ]; then
47++ if [ -n "$MP" ]; then
48+ echo "unmount $MP";
49+ umount "$MP";
50+ udevadm settle
51+--
52+2.23.0
53+
54diff --git a/debian/patches/series b/debian/patches/series
55index d6f2064..9feec79 100644
56--- a/debian/patches/series
57+++ b/debian/patches/series
58@@ -1,3 +1,4 @@
59 lp1810857-fix-spelling-error-in-ec2metadata-reservation-id.patch
60 lp1835124-growpart-fix-bug-when-file-image-ends-in-a-digit.patch
61 lp1836593-fix-race-condition-in-test-growpart.patch
62+lp1842682-test-growpart-fix-logic-error-resulting-test-failure.patch

Subscribers

People subscribed via source and target branches