From eff4a6736937fb9d55c09c598d0d232d38c5b06a Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 21 Mar 2007 11:55:26 +0100 Subject: udevtest: add --force mode --- udev_db.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'udev_db.c') 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); -- cgit v1.2.3-54-g00ecf