Subject: bug#39491: 28.0.50; two bugs in battery-upower

From: Michael Albinus <[email-masked]>
Date: Thu, 11 Jun 2020 20:17:32 +0200

"Basil L. Contovounesios" <[email-masked]> writes:

> --- a/test/lisp/battery-tests.el
> +++ b/test/lisp/battery-tests.el
> @@ -48,6 +48,69 @@ battery-linux-proc-apm-regexp
>      (should (equal (match-string 8 str) "1792"))
>      (should (equal (match-string 9 str) "min"))))
>
> +(ert-deftest battery-upower-state ()
> +(ert-deftest battery-upower-state-unknown ()

Shouldn't theses tests be skipped, unless battery-upower is used?
Something like

(skip-unless (eq battery-status-function #'battery-upower))