u-boot/test/dm
Simon Glass fe9a967925 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: c166c47ba3 (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>
2019-10-08 13:57:38 +08:00
..
adc.c test: dm: adc: use the real device name 2019-07-12 21:07:58 -04:00
audio.c dm: sound: Create a uclass for audio codecs 2018-12-13 16:32:49 -07:00
axi.c test: Add AXI test 2018-08-11 08:11:02 +02:00
blk.c test: dm: blk: Correct blk_base test case 2018-11-14 09:16:27 -08:00
board.c test: Add tests for board uclass 2018-09-29 11:49:35 -06:00
bootcount.c test: bootcount: add bootcount-uclass test 2019-01-14 17:41:23 -05:00
bus.c test: dm: core: Add test case for uclass driver's child_post_probe() 2018-11-14 09:16:27 -08:00
cache.c dm: cache: Add enable and disable ops for sandbox and test 2019-09-03 09:31:03 +08:00
clk_ccf.c sandbox: clk: add clk enable/disable test code 2019-08-22 00:10:09 +02:00
clk.c clk: add support for clk_is_match() 2019-08-12 13:33:38 -04:00
core.c dm: device: fail uclass_find_first_device() if list_empty 2019-02-09 07:51:00 -05:00
cpu.c test: Add tests for CPU uclass 2018-09-18 08:12:21 -06:00
dma.c test: dma: add dma-uclass test 2018-12-07 08:13:45 -05:00
eth.c env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
firmware.c dm: test: Add "/firmware" node scan test 2018-09-29 11:49:35 -06:00
gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hwspinlock.c dm: Add Hardware Spinlock class 2018-12-06 23:26:32 -05:00
i2c.c dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
i2s.c dm: sound: Create a uclass for i2s 2018-12-13 16:32:49 -07:00
Kconfig test: Move the unit tests to their own menu 2015-05-21 09:16:17 -04:00
led.c sandbox: led: use new function to configure default state 2018-08-10 10:27:32 -04:00
mailbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile u-boot-imx-20190719 2019-07-27 09:35:05 -04:00
mdio_mux.c test: dm: add a test for MDIO MUX DM uclass 2019-07-18 16:37:13 -05:00
mdio.c test: dm_mdio: add a 2nd register to the emulated PHY 2019-07-18 16:37:13 -05:00
misc.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
mmc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nop.c dm: Add a No-op uclass 2019-07-05 14:19:41 +02:00
ofnode.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
osd.c video_osd: Add osd sandbox driver and tests 2018-09-28 18:26:52 +02:00
panel.c panel: Expand the backlight support 2018-10-09 04:40:27 -06:00
pch.c pch: Add ioctl support 2019-02-20 15:27:08 +08:00
pci_ep.c test: pci_ep: add basic pci_ep tests 2019-07-11 10:05:15 -04:00
pci.c test: dm: Add a test for PCI Enhanced Allocation 2019-07-10 16:52:58 -06:00
phy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic.c sandbox: tests: Add tests for mc34708 PMIC device 2018-05-18 08:27:26 +02:00
power-domain.c dm: power-domain: query power domain after get device 2018-08-06 11:52:19 +02:00
pwm.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ram.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c test: dm: regmap: Fix the long test delay 2019-01-14 17:47:13 -07:00
regulator.c power: regulator: Introduce regulator_set_enable_if_allowed api 2019-02-09 12:50:22 -07:00
remoteproc.c remoteproc: add elf file load support 2019-07-22 09:21:28 +02:00
reset.c test/dm: reset: Add reset_get_by_index[_nodev] test 2019-05-09 00:44:13 +05:30
rtc.c dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
serial.c dm: serial: Adjust serial_getinfo() to use proper API 2019-01-14 17:47:13 -07:00
sf.c sandbox: Drop the deprecated 'sb' command 2018-11-26 08:25:35 -05:00
smem.c test: smem: add basic smem test 2018-07-19 17:03:28 -04:00
sound.c sound: Add uclass operations for beeping 2019-02-20 15:27:08 +08:00
spi.c dm: spi: Update sandbox SPI emulation driver to use ofnode 2018-07-09 09:11:00 -06:00
spmi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
syscon.c syscon: update syscon_regmap_lookup_by_phandle 2019-04-11 20:10:05 -06:00
sysreset.c sandbox: sysreset: Update to support power-on reset 2018-12-05 06:01:34 -07:00
tee.c test: tee: fix resource leak in dm_test_tee() 2018-11-01 10:02:43 -04:00
test-driver.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test-fdt.c dm: core: add support for getting register address and size 2019-08-12 13:33:39 -04:00
test-main.c dm: test: Fix running of multiple test from command line 2019-10-08 13:57:38 +08:00
test-uclass.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
usb.c test: dm: usb: use the real device name 2019-07-12 21:07:59 -04:00
video.c video: Factor out vidconsole_put_string() 2019-05-20 12:00:05 +02:00
virtio.c test: dm: virtio: Add test cases for virtio uclass 2018-11-14 09:16:28 -08:00
wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00