From: Zbigniew Jędrzejewski-Szmek Date: Mon, 29 May 2023 10:28:34 +0000 (+0200) Subject: tests: drop unnecessary redirection of stderr X-Git-Tag: v254-rc1~335^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e80444729fbfc05d4b22e775072165eba72fae72;p=thirdparty%2Fsystemd.git tests: drop unnecessary redirection of stderr command -v doesn't print anything to stderr, let's use the canonical form with just >/dev/null. --- 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