diff options
author | 2023-07-28 10:50:33 +0200 | |
---|---|---|
committer | 2023-08-23 20:04:17 -0500 | |
commit | 0676aeeca537740a03ecdb8b699b37e98ec60289 (patch) | |
tree | 8ff48cb19cc997fa819115737a85ceabc1092bca /tools/perf/scripts/python/export-to-postgresql.py | |
parent | of: unittest: Merge of_unittest_apply{,_revert}_overlay_check() (diff) | |
download | wireguard-linux-0676aeeca537740a03ecdb8b699b37e98ec60289.tar.xz wireguard-linux-0676aeeca537740a03ecdb8b699b37e98ec60289.zip |
of: unittest: Cleanup partially-applied overlays
When of_overlay_fdt_apply() fails, the changeset may be partially
applied, and the caller is still expected to call of_overlay_remove() to
clean up this partial state. However, overlay_17 is the only test that
takes care of cleaning up after an (expected) failure.
Instead of adding cleanup code to each individual test, extend
overlay_info with the optional expected return value of
of_overlay_remove(), and handle cleanup in the overlay_data_apply()
helper. While at it, simplify the end marker in the overlay_info table.
Update the expected error output for errors during the newly cleanup.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/594a6a8934e5569bf96d317a6a3c0a9129a2ae20.1690533838.git.geert+renesas@glider.be
[robh: update and fix EXPECT messages]
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions