From 7bd5eda5999686a0fb20eb9a2e971552f322adaa Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Wed, 19 Oct 2022 22:00:19 +0200 Subject: [PATCH] debian/tests/test-nut.py: set SYSTEMCTL_SKIP_REDIRECT to 1 The behaviour of the upstream systemd services has changed breaking the existing tests. This is a quick fix for the tests so they use the sysv initscript instead of the systemd services. Gbp-Dch: Full Closes: #1019221 --- debian/tests/test-nut.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/tests/test-nut.py b/debian/tests/test-nut.py index ffbec80..f23b488 100644 --- a/debian/tests/test-nut.py +++ b/debian/tests/test-nut.py @@ -69,6 +69,12 @@ import unittest, subprocess, sys, os, time import tempfile import testlib +# The behaviour of the upstream systemd services has changed breaking the +# existing tests. This is a quick fix for the tests so they use the sysv +# initscript instead of the systemd services. +# The tests should probably be adjusted in the future. +os.environ['SYSTEMCTL_SKIP_REDIRECT'] = '1' + use_private = True try: from private.qrt.nut import PrivateNutTest