[flashrom-gerrit] Change in flashrom[master]: tests: Mock file i/o for linux_mtd and linux_spi tests