From e80444729fbfc05d4b22e775072165eba72fae72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 29 May 2023 12:28:34 +0200 Subject: [PATCH] tests: drop unnecessary redirection of stderr command -v doesn't print anything to stderr, let's use the canonical form with just >/dev/null. --- test/units/testsuite-35.sh | 4 ++-- test/units/testsuite-58.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/units/testsuite-35.sh b/test/units/testsuite-35.sh index 659882ed7ae..2dd1a560c43 100755 --- a/test/units/testsuite-35.sh +++ b/test/units/testsuite-35.sh @@ -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 diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh index acd03d2fdf9..5ebbd305c8c 100755 --- a/test/units/testsuite-58.sh +++ b/test/units/testsuite-58.sh @@ -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