Skip to contentSkip to conversation

selftests: ir: skip when lirc device doesn't exist.

PATCH New Shuah Khan 1 participant 1 message Jan 31, 2019 Kselftest

lore
Share & tools
lore

Shuah Khan

author maintainer
#0 lore raw

PATCH 1/1 selftests: ir: skip when lirc device doesn't exist.

Skip instead of fail when lirc device doesn't exist.

Signed-off-by Shuah Khan <shuah at kernel.org>
---
 tools/testing/selftests/ir/ir_loopback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/ir/ir_loopback.c +1 -1
index 8cdf1b89ac9c..ff351bb7c163 100644
@@ -76,7 +76,7 @@ int lirc_open(const char *rc)
 	}
 
 	if (!dent)
-		ksft_exit_fail_msg("cannot find lirc device for %s\n", rc);
+		ksft_exit_skip("cannot find lirc device for %s\n", rc);
 
 	closedir(d);
 
Signature · 1 line
2.17.1