-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into livepatch-motd
- Loading branch information
Showing
41 changed files
with
473 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ Running tests | |
|
||
Please run: | ||
|
||
$ make -C test | ||
$ PYTHONPATH=. python3 -m unittest | ||
|
||
Or | ||
|
||
$ PYTHONPATH=. python3 -m pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
unattended-upgrades (2.9) UNRELEASED; urgency=medium | ||
unattended-upgrades (2.10) UNRELEASED; urgency=medium | ||
|
||
[ Brian Murray ] | ||
* kernel/postinst.d/unattended-upgrades: check to see if canonical-livepatch | ||
is installed and enabled. In the event that it is and it says a reboot is | ||
required do not update reboot-required files so that only one reboot | ||
message appears in the message of the day. | ||
|
||
-- Brian Murray <[email protected]> Mon, 17 Jan 2022 09:52:04 -0800 | ||
|
||
unattended-upgrades (2.9.1) unstable; urgency=medium | ||
|
||
[ Jean-Pierre Giraud ] | ||
* French translation updates (Closes: #989635) | ||
|
||
[ Balint Reczey ] | ||
* debian/tests/common-functions: Skip test if debootstrapping fails | ||
* debian/control: Remove myself from Uploaders | ||
|
||
[Michael Vogt] | ||
* github: fix action to use current lts as base for autopkgtest | ||
* github: move to latest lxd instead of hardcoding it | ||
* github: move action to use stable (impish) for tests | ||
|
||
-- Balint Reczey <[email protected]> Thu, 21 Jul 2022 14:25:14 +0200 | ||
>>>>>>> origin/master | ||
|
||
unattended-upgrades (2.8) unstable; urgency=medium | ||
|
||
[ Lucas Moura ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/sh | ||
|
||
test/autopkgtest_kernel_patterns.py | ||
set -ex | ||
|
||
PYTHONPATH=. test/autopkgtest_kernel_patterns.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/sh | ||
|
||
cd test | ||
make | ||
set -ex | ||
|
||
python3 -m unittest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -ex | ||
|
||
chroot_dir=$AUTOPKGTEST_TMP/chroot | ||
start_date=20200309T000000Z | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/usr/bin/python3 | ||
|
||
import logging | ||
import os | ||
import os.path | ||
import shutil | ||
import subprocess | ||
import tempfile | ||
import unittest | ||
|
||
import apt | ||
|
||
import unattended_upgrade | ||
|
||
|
||
class MockOptions(object): | ||
debug = True | ||
verbose = False | ||
download_only = False | ||
dry_run = False | ||
apt_debug = False | ||
minimal_upgrade_steps = True | ||
|
||
|
||
class TestBase(unittest.TestCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
# XXX: find a more elegant way | ||
pkgdir = os.path.join(os.path.dirname(__file__), "packages") | ||
subprocess.check_call(["make", "-C", pkgdir]) | ||
|
||
def setUp(self): | ||
super(TestBase, self).setUp() | ||
self.tempdir = tempfile.mkdtemp() | ||
self.addCleanup(shutil.rmtree, self.tempdir) | ||
self.testdir = os.path.dirname(__file__) | ||
# ensure custom logging gets reset (XXX: does this work?) | ||
self.addCleanup(logging.shutdown) | ||
logging.root.handlers = [] | ||
# XXX: workaround for most tests assuming to run inside the "test" | ||
# dir | ||
os.chdir(self.testdir) | ||
# fake the lock file | ||
unattended_upgrade.LOCK_FILE = os.path.join(self.tempdir, "u-u.lock") | ||
# XXX: some test monkey patch this without reset | ||
unattended_upgrade.init_distro_info() | ||
# reset apt config | ||
apt.apt_pkg.init_config() | ||
# must be last | ||
self._saved_apt_conf = {} | ||
for k in apt.apt_pkg.config.keys(): | ||
if not k.endswith("::"): | ||
self._saved_apt_conf[k] = apt.apt_pkg.config.get(k) | ||
self.addCleanup(self.enforce_apt_config_reset) | ||
|
||
def enforce_apt_config_reset(self): | ||
for k in self._saved_apt_conf: | ||
v = self._saved_apt_conf[k] | ||
apt.apt_pkg.config.set(k, v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.