crushtool: another simple test for update

If the weight doesn't change it should be a no-op.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2012-05-03 20:33:35 -07:00
parent 9772d13218
commit 42f2d2fd65

View 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"