From fdef50b998bc2e9f30fba5df2a4e48f2d9947353 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. (cherry picked from commit e80444729fbfc05d4b22e775072165eba72fae72) --- 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 8159b1b2870..89e15626886 100755 --- a/test/units/testsuite-35.sh +++ b/test/units/testsuite-35.sh @@ -100,11 +100,11 @@ test_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 f480399f09a..8e1cbe0ede2 100755 --- a/test/units/testsuite-58.sh +++ b/test/units/testsuite-58.sh @@ -9,7 +9,7 @@ runas() { XDG_RUNTIME_DIR=/run/user/"$(id -u "$userid")" setpriv --reuid="$userid" --init-groups "$@" } -if ! command -v systemd-repart &>/dev/null; then +if ! command -v systemd-repart >/dev/null; then echo "no systemd-repart" >/skipped exit 0 fi