diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2019-04-04 23:57:20 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-04-10 04:32:00 +0000 |
commit | 398b53adb281e459281f74a9f96a12ee48da7daa (patch) | |
tree | 8873a26b402600fef9b7115dc02733a02c093f13 | |
parent | eeacb402ac465a1981b7b53b9796fa65a40bdde2 (diff) |
ec: increase line coverage of ec
Test ec-cpu-extensions.t has been modified so that it uses a bigger
matrix. This makes use of more functions from ec-code-c.c. Changing
read-policy to round-robin increases even more the functions used,
reaching 100% of line and function coverage for this file.
Change-Id: I26e4d33269cbd67f5d76d862f4cf1e69285e85e1
updates: bz#1193929
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
-rw-r--r-- | tests/basic/ec/ec-cpu-extensions.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/basic/ec/ec-cpu-extensions.t b/tests/basic/ec/ec-cpu-extensions.t index a599a316925..c9af27ea234 100644 --- a/tests/basic/ec/ec-cpu-extensions.t +++ b/tests/basic/ec/ec-cpu-extensions.t @@ -1,6 +1,6 @@ #!/bin/bash -DISPERSE=6 +DISPERSE=18 REDUNDANCY=2 . $(dirname $0)/../../include.rc @@ -39,6 +39,7 @@ TEST glusterd TEST pidof glusterd TEST $CLI volume create $V0 redundancy $REDUNDANCY $H0:$B0/${V0}{1..$DISPERSE} TEST $CLI volume set $V0 performance.flush-behind off +TEST $CLI volume set $V0 disperse.read-policy round-robin EXPECT 'Created' volinfo_field $V0 'Status' TEST $CLI volume start $V0 EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Started' volinfo_field $V0 'Status' |