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 */