summaryrefslogtreecommitdiff
path: root/udevdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevdb.c')
-rw-r--r--udevdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udevdb.c b/udevdb.c
index 3d0a9ea3c2..23de22751d 100644
--- a/udevdb.c
+++ b/udevdb.c
@@ -49,6 +49,9 @@ int udevdb_add_dev(struct udevice *udev)
TDB_DATA key, data;
char keystr[SYSFS_PATH_MAX];
+ if (udev->test_run)
+ return 0;
+
if (udevdb == NULL)
return -1;