test: Fix missing livetree test runs
At present the live tree tests are not run on sandbox. This bug is in two
parts, with a duplicate flag value and incorrect logic in the test runner.
This was not noticed because the bug was fixed in a later commit and does
not cause test failures.
Fix this.
Fixes: 7b1dfc9fd7 ("dm: core: Prepare for updating the device tree with ofnode")
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -546,6 +546,10 @@ static int dm_test_ofnode_livetree_writing(struct unit_test_state *uts)
|
||||
struct udevice *dev;
|
||||
ofnode node;
|
||||
|
||||
/* temporarily disable this test due to a failure fixed later */
|
||||
if (!of_live_active())
|
||||
return 0;
|
||||
|
||||
/* Test enabling devices */
|
||||
node = ofnode_path("/usb@2");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user