Skip to content

mtd: tests: reduce more code duplication and fixes

Akinobu Mita linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mtd: pagetest: remove always true conditiondrivers/mtd/tests/pagetest.c+3 -30 replies
2/4mtd: tests: return -EIO when mtdtest_read() failed to read requested bytesdrivers/mtd/tests/mtd_test.c+1 -10 replies
3/4mtd: tests: incorporate error message for mtdtest_read()drivers/mtd/tests/mtd_test.c drivers/mtd/tests/pagetest.c drivers/mtd/tests/readtest.c +2 more+17 -760 replies
4/4mtd: tests: incorporate error message for mtdtest_write()drivers/mtd/tests/mtd_test.c drivers/mtd/tests/nandbiterrs.c drivers/mtd/tests/pagetest.c +2 more+12 -500 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -next 0/4] mtd: tests: reduce more code duplication and fixes

This patch set fixes some problems in the patch set 'mtd: tests: reduce duplication among mtd tests modules' and reduces more duplication by incorporating the error messages into mtdtest_read() and mtdtest_write().

Akinobu Mita (4):
mtd: pagetest: remove always true condition
mtd: tests: return -EIO when mtdtest_read() failed to read requested
bytes
mtd: tests: incorporate error message for mtdtest_read()
mtd: tests: incorporate error message for mtdtest_write()

 drivers/mtd/tests/mtd_test.c    |  6 ++-
 drivers/mtd/tests/nandbiterrs.c |  8 +---
 drivers/mtd/tests/pagetest.c    | 84 ++++++++---------------------------------
 drivers/mtd/tests/readtest.c    |  2 -
 drivers/mtd/tests/speedtest.c   | 48 ++++-------------------
 drivers/mtd/tests/stresstest.c  | 15 ++------
 6 files changed, 33 insertions(+), 130 deletions(-)
Cc Brian Norris <[email protected]>
Cc Vikram Narayanan <[email protected]>
Cc Adrian Hunter <[email protected]>
Cc Artem Bityutskiy <[email protected]>
Cc David Woodhouse <[email protected]>
Signature · 1 line
1.8.3.1