Skip to content

Commit

Permalink
tests: drop unnecessary redirection of stderr
Browse files Browse the repository at this point in the history
command -v doesn't print anything to stderr, let's use the canonical
form with just >/dev/null.

(cherry picked from commit e804447)
  • Loading branch information
keszybz authored and bluca committed Jul 7, 2023
1 parent efffd36 commit fdef50b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/units/testsuite-35.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/units/testsuite-58.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdef50b

Please sign in to comment.