From 42f2d2fd655fd120b0d47f36ea80c4a188fa4a7b Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 3 May 2012 20:33:35 -0700 Subject: [PATCH] crushtool: another simple test for update If the weight doesn't change it should be a no-op. Signed-off-by: Sage Weil --- src/test/cli/crushtool/add-item.t | 3 +++ 1 file changed, 3 insertions(+) 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"