diff options
author | Guillem Jover <guillem@debian.org> | 2016-12-16 22:39:38 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2017-01-25 04:02:40 +0100 |
commit | 9899bdcf9bde76d969b124abf0a898fcbb202c70 (patch) | |
tree | 076ac53b737af369671d56cc865d1de8c3daa526 /scripts/Dpkg/Control/FieldsCore.pm | |
parent | df630946cc239c4fb7494dd3a2b78fa4e1c98358 (diff) | |
download | dpkg-9899bdcf9bde76d969b124abf0a898fcbb202c70.tar.gz |
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 <laney@debian.org>
Diffstat (limited to 'scripts/Dpkg/Control/FieldsCore.pm')
-rw-r--r-- | scripts/Dpkg/Control/FieldsCore.pm | 7 |
1 files changed, 6 insertions, 1 deletions
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() => [ |