summaryrefslogtreecommitdiff
path: root/udev_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_db.c')
-rw-r--r--udev_db.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev_db.c b/udev_db.c
index 83d3f9bbf8..00d68d6d13 100644
--- a/udev_db.c
+++ b/udev_db.c
@@ -286,6 +286,9 @@ int udev_db_delete_device(struct udevice *udev)
char filename[PATH_SIZE];
struct name_entry *name_loop;
+ if (udev->test_run)
+ return 0;
+
devpath_to_db_path(udev->dev->devpath, filename, sizeof(filename));
unlink(filename);