From d5402e55f6b9d3a5f407502ce5c7a8a5bfd12243 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 1 Dec 2021 10:08:08 -0600 Subject: [PATCH] devices file: don't write in test mode --- lib/device/device_id.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/device/device_id.c b/lib/device/device_id.c index 06d64a494..bfee7d418 100644 --- a/lib/device/device_id.c +++ b/lib/device/device_id.c @@ -678,6 +678,9 @@ int device_ids_write(struct cmd_context *cmd) cmd->enable_devices_file = 1; } + if (test_mode()) + return 1; + if (_devices_file_version[0]) { if (sscanf(_devices_file_version, "%u.%u.%u", &df_major, &df_minor, &df_counter) != 3) { /* don't update a file we can't parse */