dm: test: Update the test runner to support of-platdata
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 02:38:27 +0000 (20:38 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:18 +0000 (14:42 -0600)
commit5b448ce687c0f34b0b55ffe5785b14d762b2296d
tree916cb8a4a437804a674bc113515607415bdd5c43
parentba96be48ad34180debcfbc11434be7329d530701
dm: test: Update the test runner to support of-platdata

At present DM tests assume that a devicetree is available. This is not the
case with of-platadata.

Update the code to add this condition.

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