dm: core: Create a function to get a live tree in a test
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:29 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 30 Sep 2022 02:43:43 +0000 (22:43 -0400)
commit88a1ae8172a847911ce699ac95f79ea17c88739c
tree8715c87caac2fb77d2e11877c9964fbc850e3503
parent988f146855624d5549637552ca9f24bf07f088bf
dm: core: Create a function to get a live tree in a test

Move this logic out of the test into separate functions, so we can use it
in other tests.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/dm/ofnode.c