summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-05-03 20:33:35 -0700
committerSage Weil <sage.weil@dreamhost.com>2012-05-03 20:33:35 -0700
commit42f2d2fd655fd120b0d47f36ea80c4a188fa4a7b (patch)
treeba955bbf627a11de9b83b8a06fe080002b549d39
parent9772d132181c1bdef3559ed19a92f210465a1919 (diff)
downloadceph-42f2d2fd655fd120b0d47f36ea80c4a188fa4a7b.tar.gz
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>
-rw-r--r--src/test/cli/crushtool/add-item.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/cli/crushtool/add-item.t b/src/test/cli/crushtool/add-item.t
index 80b91da59dc..f058b639c61 100644
--- a/src/test/cli/crushtool/add-item.t
+++ b/src/test/cli/crushtool/add-item.t
@@ -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"