[flashrom-gerrit] Change in flashrom[master]: tests/: Add file path and flags validation to open() calls