We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4b2c87 commit e13c1ebCopy full SHA for e13c1eb
1 file changed
test-case/test-jack-detection-dsp-d3.sh
@@ -168,14 +168,13 @@ main()
168
start_test
169
170
dlogi "Checking usbrelay availability..."
171
- if ! command -v usbrelay > /dev/null; then
+ command -v usbrelay || {
172
# If usbrelay package is not installed
173
skip_test "usbrelay command not found."
174
- fi
175
-
176
- if ! usbrelay_switch --debug > /dev/null; then
+ }
+ usbrelay_switch --debug || {
177
skip_test "Failed to get usbrelay status."
178
179
180
dlogi "Reset USB Relay - plug jack audio."
181
usbrelay_switch "$relay" 0
0 commit comments