]> git.baikalelectronics.ru Git - uboot.git/commit
dm: test: Fix running of multiple test from command line
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:55:51 +0000 (08:55 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:38 +0000 (13:57 +0800)
commit53e0152375ff8d625e17b4b674f5170f38eed006
treea95fb3955be4b2e287c31f9b824f80e1c20ac860
parent3d3b2ce9b86420747ca6fee112b9a21106f9931b
dm: test: Fix running of multiple test from command line

At present when multiple 'ut dm' commands are executed, all but the first
is run with a flat tree, even if live tree is enabled. This is because the
live tree node pointer is set to NULL and never restored.

This does not affect normal test running, which just runs all the test in
one go, but can be confusing when several individual tests are run during
the same U-Boot run.

Correct this by restoring the pointer.

Fixes: c490e52767 (dm: test: Add support for running tests with livetree)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
test/dm/test-main.c