Skip to content

Commit eddcba9

Browse files
arikgreenredzynix
authored andcommitted
test: Skip before enabling logs to avoid failure
The test ends with FAIL status despite the method skip_test being called next enabling logs. Reason of a fail: "Empty logfile" Signed-off-by: Artur Wilczak <arturx.wilczak@intel.com>
1 parent 91ef4b3 commit eddcba9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test-case/test-jack-detection-playback-capture.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ main()
171171

172172
start_test
173173

174-
logger_disabled || func_lib_start_log_collect
175-
176-
# Check if usbrelay tool is installed
174+
dlogi "Checking usbrelay availability..."
177175
command -v usbrelay || {
178176
# If usbrelay package is not installed
179177
skip_test "usbrelay command not found. Please install usbrelay package."
180178
}
181179

180+
logger_disabled || func_lib_start_log_collect
181+
182182
# display current status of relays
183183
usbrelay --debug
184184

0 commit comments

Comments
 (0)