summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ob_parse_control.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/ob_parse_control.sh b/tests/ob_parse_control.sh
index 26222f2..c9e4289 100755
--- a/tests/ob_parse_control.sh
+++ b/tests/ob_parse_control.sh
@@ -56,7 +56,8 @@ field_1()
{
local name="${1}"
local value="${2}"
- shift 2
+ local user_data="${3}"
+ shift 3
is 'maintainer field name' "${name}" 'Maintainer'
is 'maintainer field value' "${value}" \
@@ -69,7 +70,8 @@ field_2()
{
local name="${1}"
local value="${2}"
- shift 2
+ local user_data="${3}"
+ shift 3
is 'build-depends field name' "${name}" 'Build-Depends'
is 'build-depends field value' "${value}" \
@@ -82,7 +84,8 @@ field_3()
{
local name="${1}"
local value="${2}"
- shift 2
+ local user_data="${3}"
+ shift 3
is 'homepage field name' "${name}" 'Homepage'
is 'homepage field value' "${value}" 'http://www.example.com/'
@@ -101,7 +104,7 @@ field_cb()
"field_${field}" "${@}"
}
-ob_parse_control - field_cb 'Maintainer' 'Build-Depends Homepage' <<-EOF
+ob_parse_control - field_cb '' 'Maintainer' 'Build-Depends Homepage' <<-EOF
${CONTROL}
EOF