]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - tests/10ddf-create
Create: report failure if array cannot be started.
[thirdparty/mdadm.git] / tests / 10ddf-create
index 12c38208cd37b6bd9f516742128ab7864126ecdd..25b1352944244138d6516e1cece4f6e1215fcb27 100644 (file)
@@ -7,9 +7,13 @@
 #
 # add some data, tear down the array, reassemble
 # and make sure it is still there.
+set -e
 
 mdadm -CR /dev/md/ddf0 -e ddf -n 5 $dev8 $dev9 $dev10 $dev11 $dev12
 mdadm -CR r0 -l0 -n5 /dev/md/ddf0 -z 5000
+if mdadm -CR r0 -l1 -n2 /dev/md/ddf0 -z 5000
+then echo >&2 create with same name should fail ; exit 1
+fi
 mdadm -CR r1 -l1 -n2 /dev/md/ddf0
 mdadm -CR r5 -l5 -n3 /dev/md/ddf0
 testdev /dev/md/r0 5 5000 512