diff options
author | hari gowtham <hgowtham@redhat.com> | 2017-11-29 11:23:40 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2017-11-30 10:15:10 +0000 |
commit | eb013e4c180014238c95d58f67246ff19b40c437 (patch) | |
tree | a4eee4844ba5720d6df0c28b649bcf4d3759633c /tests/tier.rc | |
parent | 5b4b25c697f93d3dfe352013a442f2ec73fd3b8b (diff) |
tests: fix for bug-1260185-donot-allow-detach-commit-unnecessarily.t failure
problem: detach commit was issues before detach start was completed.
fix: wait for detach start to finish and then detach commit.
Change-Id: I639962be6de6dbd1512f0a5617050d1e6872eac8
BUG: 1517961
Signed-off-by: hari gowtham <hgowtham@redhat.com>
Diffstat (limited to 'tests/tier.rc')
-rw-r--r-- | tests/tier.rc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tier.rc b/tests/tier.rc index da6b0ee4777..88acdc791eb 100644 --- a/tests/tier.rc +++ b/tests/tier.rc @@ -153,3 +153,7 @@ function tier_detach_status () { function wait_for_tier_start () { sleep 5 } + +function tier_detach_commit_for_single_node () { + $CLI volume tier $V0 detach commit | grep "success" | wc -l +} |