summaryrefslogtreecommitdiff
path: root/udev_db.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-03-21 11:55:26 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-03-21 11:55:26 +0100
commiteff4a6736937fb9d55c09c598d0d232d38c5b06a (patch)
tree5627353b04dd1ed411c37789e38d7419894a4789 /udev_db.c
parent7586b637193968e8ef15b12d984b975eec66a803 (diff)
udevtest: add --force 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);