[LTP] [PATCH] read_all: skip eeprom and nvmem

Jan Stancek jstancek@redhat.com
Fri Jan 24 15:56:35 CET 2020


Big Power9 NV systems are failing to complete the test, as they
spend lot of time on /sys/devices/platform, trying to read dozens
of low level files like eeprom or nvmem. Each adds couple seconds,
eventually pushing test over timeout.

User or system admin is unlikely to ever need to access these
entries, so skip them.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/fs/read_all/read_all.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/kernel/fs/read_all/read_all.c b/testcases/kernel/fs/read_all/read_all.c
index 47f8532231d9..f091f2f64a4d 100644
--- a/testcases/kernel/fs/read_all/read_all.c
+++ b/testcases/kernel/fs/read_all/read_all.c
@@ -85,6 +85,8 @@ static char *blacklist[] = {
 	NULL, /* reserved for -e parameter */
 	"/sys/power/wakeup_count",
 	"/sys/kernel/debug/*",
+	"/sys/devices/platform/*/eeprom",
+	"/sys/devices/platform/*/nvmem",
 };
 
 static struct tst_option options[] = {
-- 
2.18.1



More information about the ltp mailing list