Merge ~chad.smith/curtin:ubuntu/devel into curtin:ubuntu/devel

Proposed by Chad Smith
Status: Merged
Merged at revision: 6294ad5e62b0448b60b68771acff08041258908d
Proposed branch: ~chad.smith/curtin:ubuntu/devel
Merge into: curtin:ubuntu/devel
Diff against target: 50 lines (+16/-5)
2 files modified
debian/changelog (+7/-0)
tests/vmtests/__init__.py (+9/-5)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Scott Moser (community) Approve
Review via email: mp+353522@code.launchpad.net

Commit message

new-upstream-snapshot to publish into Cosmic

To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) :
review: Approve
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)

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 6e3bffb..7d08e65 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+curtin (18.1-51-gb812ae80-0ubuntu1) cosmic; urgency=medium
7+
8+ * New upstream snapshot.
9+ - vmtest: ensure we collect /var/log/journal only once
10+
11+ -- Chad Smith <chad.smith@canonical.com> Tue, 21 Aug 2018 11:44:46 -0600
12+
13 curtin (18.1-50-g2d9b2c6f-0ubuntu1) cosmic; urgency=medium
14
15 * New upstream snapshot.
16diff --git a/tests/vmtests/__init__.py b/tests/vmtests/__init__.py
17index 0249655..bd159c4 100644
18--- a/tests/vmtests/__init__.py
19+++ b/tests/vmtests/__init__.py
20@@ -1801,21 +1801,25 @@ def generate_user_data(collect_scripts=None, apt_proxy=None,
21 exit 0;
22 """)
23
24- # add journal collection "last" before collect_post
25 collect_journal = textwrap.dedent("""#!/bin/sh -x
26 cd OUTPUT_COLLECT_D
27 # sync and flush journal before copying (if journald enabled)
28+ target="./var-log-journal"
29 [ -e /var/log/journal ] && {
30+ [ -e ${target} ] && {
31+ echo "ERROR: ${target} dir exists; journal collected already";
32+ exit 1;
33+ }
34 journalctl --sync --flush --rotate
35- cp -a /var/log/journal ./var-log-journal
36- gzip -9 ./var-log-journal/*/system*.journal
37+ cp -a /var/log/journal ${target}
38+ gzip -9 ${target}/*/system*.journal
39 }
40 exit 0;
41 """)
42- collect_scripts.append(collect_journal)
43
44+ # add journal collection "last" before collect_post
45 scripts = ([collect_prep] + [copy_rootdir] + collect_scripts +
46- [collect_post] + [failsafe_poweroff])
47+ [collect_journal] + [collect_post] + [failsafe_poweroff])
48
49 for part in scripts:
50 if not part.startswith("#!"):

Subscribers

People subscribed via source and target branches