]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: drop unnecessary redirection of stderr
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 May 2023 10:28:34 +0000 (12:28 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 May 2023 14:04:35 +0000 (16:04 +0200)
command -v doesn't print anything to stderr, let's use the canonical
form with just >/dev/null.

test/units/testsuite-35.sh
test/units/testsuite-58.sh

index 659882ed7ae36f2699a71aaa7029ebd3c760acea..2dd1a560c43e97b72e773ca351eae76ca92a9688 100755 (executable)
@@ -102,11 +102,11 @@ testcase_suspend_on_lid() {
         echo "suspend not supported on this testbed, skipping"
         return
     fi
-    if ! command -v evemu-device &>/dev/null; then
+    if ! command -v evemu-device >/dev/null; then
         echo "command evemu-device not found, skipping"
         return
     fi
-    if ! command -v evemu-event &>/dev/null; then
+    if ! command -v evemu-event >/dev/null; then
         echo "command evemu-event not found, skipping"
         return
     fi
index acd03d2fdf96e744e6e0d085dc7225f37401e4e7..5ebbd305c8c9a55fd32a69b002aaa949281a430c 100755 (executable)
@@ -7,7 +7,7 @@ set -o pipefail
 # shellcheck source=test/units/util.sh
 . "$(dirname "$0")"/util.sh
 
-if ! command -v systemd-repart &>/dev/null; then
+if ! command -v systemd-repart >/dev/null; then
     echo "no systemd-repart" >/skipped
     exit 0
 fi