Bug#1081679: waagent: build-depends on python3-nose or uses it for autopkgtest
Hi,
Concerning remove Nose in then Debian downstream packaging;
this looks like stripping-out the "@attr('requires_sudo')" would be enough
to cleanse the current release.
Greetings
--- a/tests/common/test_cgroupconfigurator.py
+++ b/tests/common/test_cgroupconfigurator.py
@@ -26,7 +26,6 @@ import tempfile
import time
import threading
-from nose.plugins.attrib import attr
from azurelinuxagent.common import conf
from azurelinuxagent.common.cgroup import AGENT_NAME_TELEMETRY,
MetricsCounter, MetricValue, MetricsCategory, CpuCgroup
@@ -527,7 +526,6 @@ cgroup on /sys/fs/cgroup/blkio type cgroup
(rw,nosuid,nodev,noexec,relatime,blki
self.assertEqual(len(CGroupsTelemetry._tracked), 0, "No cgroups should
have been created")
@skip_if_predicate_true(is_python_version_26_or_34, "Disabled on
Python 2.6 and 3.4 for now. Need to revisit to fix it")
- @attr('requires_sudo')
@patch('time.sleep', side_effect=lambda _: mock_sleep())
def test_start_extension_command_should_not_use_fallback_option_if_extension_fails(self,
*args):
self.assertTrue(i_am_root(), "Test does not run when non-root")
@@ -565,7 +563,6 @@ cgroup on /sys/fs/cgroup/blkio type cgroup
(rw,nosuid,nodev,noexec,relatime,blki
self.assertIn("Running scope as unit",
ustr(context_manager.exception))
@skip_if_predicate_true(is_python_version_26_or_34, "Disabled on
Python 2.6 and 3.4 for now. Need to revisit to fix it")
- @attr('requires_sudo')
@patch('time.sleep', side_effect=lambda _: mock_sleep())
@patch("azurelinuxagent.common.utils.extensionprocessutil.TELEMETRY_MESSAGE_MAX_LEN",
5)
def test_start_extension_command_should_not_use_fallback_option_if_extension_fails_with_long_output(self,
*args):
@@ -604,7 +601,6 @@ cgroup on /sys/fs/cgroup/blkio type cgroup
(rw,nosuid,nodev,noexec,relatime,blki
# even though systemd-run ran
self.assertNotIn("Running scope as unit",
ustr(context_manager.exception))
- @attr('requires_sudo')
def test_start_extension_command_should_not_use_fallback_option_if_extension_times_out(self,
*args): # pylint: disable=unused-argument
self.assertTrue(i_am_root(), "Test does not run when non-root")
@
Le mar. 24 sept. 2024 à 12:09, Bastian Blank <waldi@debian.org> a écrit :
>
> On Mon, Sep 23, 2024 at 05:39:07PM -0400, Noah Meyerhans wrote:
> > On Mon, Sep 23, 2024 at 07:32:05PM +0200, Alexandre Detiste wrote:
> > > I seen 1 remaining refererence
Reply to: