Control: tags -1 + patch Something like the attached patch should do the trick.
Regards, Michael
diff -Nru gpsd-3.20/debian/tests/check-service gpsd-3.20/debian/tests/check-service --- gpsd-3.20/debian/tests/check-service 2020-03-12 10:46:35.000000000 +0100 +++ gpsd-3.20/debian/tests/check-service 2020-03-13 17:01:27.000000000 +0100 @@ -12,12 +12,12 @@ # socket should be enabled and active after install echo "Check socket being active" -systemctl list-unit-files | grep -e "^gpsd.socket\s*enabled\s*$" -systemctl show gpsd.socket -p ActiveState | grep '^ActiveState=active$' +test $(systemctl is-enabled gpsd.socket) = "enabled" +test $(systemctl is-active gpsd.socket) = "active" # service is activated indirect (via socket) and inactive after install echo "Check service being inactive" -systemctl list-unit-files | grep -e "^gpsd.service\s*disabled\s*$" -systemctl show gpsd.service -p ActiveState | grep '^ActiveState=inactive$' +test $(systemctl is-enabled gpsd.service) = "disabled" +test $(systemctl is-active gpsd.service) = "inactive" # service has to get up on the socket call to respond correctly # (not complex enough to use expect) @@ -47,4 +47,4 @@ # now the service should be active echo "Check service being active now" -systemctl show gpsd.service -p ActiveState | grep '^ActiveState=active$' +test $(systemctl is-active gpsd.service) = "active"
signature.asc
Description: OpenPGP digital signature