test_dir: Refactor common code out of the dir_format unit tests

Also:
* delete some obsolete code that was #if 0
* improve cleanup on failure
* make the dir_format tests more consistent with each other
* construct the descriptors using smartlist chunks

This refactor is incomplete, because removing the remaining duplicate
code would be time-consuming.

Part of 29017 and 29018.
This commit is contained in:
teor 2019-02-19 11:19:44 +10:00
parent 8e5df40018
commit 38fc52a50e

File diff suppressed because it is too large Load Diff