dm: test: Move test running code into a separate function
authorSimon Glass <sjg@chromium.org>
Fri, 19 May 2017 02:09:14 +0000 (20:09 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:09 +0000 (07:03 -0600)
commitf86db10cc56b9c8b73cb1bb94c5172c96958ef29
tree38e7d4c93dac2a8a44a7e45e3c7b127be71be7af
parent34b744beb866c9ae660f2851f9776f80e165d421
dm: test: Move test running code into a separate function

We want to run the same test on flat and live trees. In preparation for
this, create a new function which handles running a test.

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