test: drop the #define for the litest device rules

This was more useful when we installed multiple device rules but now it's only
one file anyway. Also, this drops the inadvertant double-dash
(e.g. 99-litest--Jo7Ji8.rules) which made the file name look like some
substitution was missing.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-02-12 17:03:31 +10:00
parent 8040f94637
commit 5a51add5f3

View file

@ -66,7 +66,6 @@
#include <linux/kd.h>
#define UDEV_RULES_D "/run/udev/rules.d"
#define UDEV_RULE_PREFIX "99-litest-"
#define UDEV_FUZZ_OVERRIDE_RULE_FILE UDEV_RULES_D \
"/91-litest-fuzz-override-REMOVEME-XXXXXX.rules"
#define UDEV_TEST_DEVICE_RULE_FILE UDEV_RULES_D \
@ -726,9 +725,8 @@ litest_init_all_device_udev_rules(struct list *created_files)
int fd;
rc = xasprintf(&path,
"%s/%s-XXXXXX.rules",
UDEV_RULES_D,
UDEV_RULE_PREFIX);
"%s/99-litest-XXXXXX.rules",
UDEV_RULES_D);
litest_assert_int_gt(rc, 0);
fd = mkstemps(path, 6);