Skip to content

Commit 55c3fb9

Browse files
committed
tests: jd-desp-d3: Fix skipping command
Fixed test skipping bug on non SDW platforms, if the usbrelay module is not installed. Signed-off-by: Artur Wilczak <arturx.wilczak@intel.com>
1 parent 4c65e71 commit 55c3fb9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test-case/test-jack-detection-dsp-d3.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,24 +168,13 @@ main()
168168
start_test
169169

170170
dlogi "Checking usbrelay availability..."
171-
<<<<<<< HEAD
172-
if ! command -v usbrelay > /dev/null; then
173-
# If usbrelay package is not installed
174-
skip_test "usbrelay command not found."
175-
fi
176-
177-
if ! usbrelay_switch --debug > /dev/null; then
178-
skip_test "Failed to get usbrelay status."
179-
fi
180-
=======
181171
command -v usbrelay || {
182172
# If usbrelay package is not installed
183173
skip_test "usbrelay command not found."
184174
}
185175
usbrelay_switch --debug || {
186176
skip_test "Failed to get usbrelay status."
187177
}
188-
>>>>>>> 628f54d (Fix skippng)
189178

190179
dlogi "Reset USB Relay - plug jack audio."
191180
usbrelay_switch "$relay" 0

0 commit comments

Comments
 (0)