]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: update unmap.t CLI test
authorIlya Dryomov <idryomov@gmail.com>
Mon, 30 Nov 2015 15:36:43 +0000 (16:36 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Nov 2015 15:45:17 +0000 (16:45 +0100)
Fixup the exit code - the old CLI tried to differentiate between CLI
errors and action errors by returning EXIT_FAILURE in the former case.
Also remove a test that relied on a special case check in the old CLI.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/cli-integration/rbd/unmap.t

index 55496618a6cbd8ef3b93846206352e795510c288..0af34bf999b6cfe3bcb7903f8bd845caf86f7435 100644 (file)
@@ -220,15 +220,11 @@ Not a mapped spec - spec that's just been unmapped:
   rbd: unmap failed: (22) Invalid argument
   [22]
 
-Either --image or arg:
-
-  $ sudo rbd unmap --image foobar barbaz
-  rbd: extraneous parameter barbaz
-  [1]
+Need an arg:
 
   $ sudo rbd unmap
   rbd: unmap requires either image name or device path
-  [1]
+  [22]
 
 
 Two images