1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

tests: drop unnecessary redirection of stderr

command -v doesn't print anything to stderr, let's use the canonical
form with just >/dev/null.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-05-29 12:28:34 +02:00
parent 5fdec39796
commit e80444729f
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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