From 9899bdcf9bde76d969b124abf0a898fcbb202c70 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 16 Dec 2016 22:39:38 +0100 Subject: dpkg-source: Generate Testsuite-Restrictions fields from test restrictions This information is currently only available in the Restrictions field in the debian/tests/control file. When dispatching tests, it might be inconvenient to have to download and unpack the source package beforehand. Let's expose this via the .dsc in a similar way we do for the Testsuite-Triggers field. Closes: #847926 Based-on-patch-by: Iain Lane --- scripts/Dpkg/Control/FieldsCore.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/Dpkg/Control/FieldsCore.pm') diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm index 8eeddadb1..70fcc9de3 100644 --- a/scripts/Dpkg/Control/FieldsCore.pm +++ b/scripts/Dpkg/Control/FieldsCore.pm @@ -383,6 +383,10 @@ our %FIELDS = ( allowed => ALL_SRC, separator => FIELD_SEP_COMMA, }, + 'Testsuite-Restrictions' => { + allowed => ALL_SRC, + separator => FIELD_SEP_COMMA, + }, 'Testsuite-Triggers' => { allowed => ALL_SRC, separator => FIELD_SEP_COMMA, @@ -472,7 +476,8 @@ our %FIELD_ORDER = ( qw(Format Source Binary Architecture Version Origin Maintainer Uploaders Homepage Standards-Version Vcs-Browser Vcs-Arch Vcs-Bzr Vcs-Cvs Vcs-Darcs Vcs-Git Vcs-Hg Vcs-Mtn - Vcs-Svn Testsuite Testsuite-Triggers), &field_list_src_dep(), + Vcs-Svn Testsuite Testsuite-Triggers Testsuite-Restrictions), + &field_list_src_dep(), qw(Package-List), @checksum_fields, qw(Files) ], CTRL_FILE_BUILDINFO() => [ -- cgit v1.2.3