Fix passing params to clone_part_str

It is necessary to send discrete parmeters so that
clone_parT_str can evaluate positional parameters
correctly .

Change-Id: I4c59df628fcc520d4de2ee03b97edd20c89f8c22
Partial-Bug: #1528197
(cherry picked from commit db04e57cc4)
(cherry picked from commit d3597dd947)
This commit is contained in:
Matthew Mosesohn 2015-12-28 18:00:14 +03:00 committed by Aleksey Zvyagintsev
parent 027031221a
commit c1f7402f37
1 changed files with 4 additions and 3 deletions

View File

@ -97,12 +97,13 @@ NTP1: 0.pool.ntp.org
dst_bs="1024"
pcount="1"
param=" 1 34 49152 24.0 MiB EF02 primary"
run clone_part_str $param
set -- $param
run clone_part_str $*
[ "${lines[0]}" = " -n1:17: -t 1:EF02 -c 1:primary" ]
pcount="2"
run clone_part_str $param
run clone_part_str $*
echo "$lines"
[ "${lines[0]}" = " -n1:17:24576 -t 1:EF02 -c 1:primary" ]
}
@test "Check timeout" {