Merge branch 'master' in devel-3.0
[thirdparty/mdadm.git] / Monitor.c
index cbc5d0f..af53129 100644 (file)
--- a/Monitor.c
+++ b/Monitor.c
@@ -434,6 +434,8 @@ int Monitor(mddev_dev_t devlist,
                                        st->spare_group = NULL;
                                        st->expected_spares = -1;
                                        statelist = st;
+                                       if (test)
+                                               alert("TestMessage", st->devname, NULL, mailaddr, mailfrom, alert_cmd, dosyslog);
                                        alert("NewArray", st->devname, NULL, mailaddr, mailfrom, alert_cmd, dosyslog);
                                        new_found = 1;
                                }