mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-07 17:17:44 +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. (cherry picked from commite80444729f
) (cherry picked from commitfdef50b998
)
This commit is contained in:
parent
427498099b
commit
9ff887b862
@ -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
|
||||
|
@ -3,7 +3,7 @@
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
if ! command -v systemd-repart &>/dev/null; then
|
||||
if ! command -v systemd-repart >/dev/null; then
|
||||
echo "no systemd-repart" >/skipped
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user