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
This commit is contained in:
Laurent Bigonville 2022-10-19 22:00:19 +02:00
parent e10849a613
commit 7bd5eda599

View File

@ -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