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.
  • Loading branch information
keszybz committed May 30, 2023
1 parent 5fdec39 commit e804447
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 @@ -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
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 @@ -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
Expand Down

0 comments on commit e804447

Please sign in to comment.