]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: another simple test for update
authorSage Weil <sage.weil@dreamhost.com>
Fri, 4 May 2012 03:33:35 +0000 (20:33 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 4 May 2012 03:33:35 +0000 (20:33 -0700)
If the weight doesn't change it should be a no-op.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/test/cli/crushtool/add-item.t

index 80b91da59dcf443269ed58439121f06dd9c28576..f058b639c6144f721c3684fefc1f9e41f73537cd 100644 (file)
@@ -10,3 +10,6 @@
   $ crushtool -i two --update-item 1 2.0 osd1 --loc host host1 --loc cluster cluster0 -o five > /dev/null
   $ crushtool -d five -o final
   $ cmp final "$TESTDIR/simple.template.five"
+  $ crushtool -i five --update-item 1 2.0 osd1 --loc host host1 --loc cluster cluster0 -o six > /dev/null
+  $ crushtool -d six -o final
+  $ cmp final "$TESTDIR/simple.template.five"