summaryrefslogtreecommitdiffstats
path: root/debian/tests/debian-testing
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/debian-testing')
-rwxr-xr-xdebian/tests/debian-testing8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/tests/debian-testing b/debian/tests/debian-testing
index df94254..126cb82 100755
--- a/debian/tests/debian-testing
+++ b/debian/tests/debian-testing
@@ -16,6 +16,10 @@ use Dpkg::Version;
use IPC::Run qw(run);
use Test::More;
+if (scalar @ARGV != 1) {
+ die "usage: $0 [minbase|-|buildd]"
+}
+my $variant = $ARGV[0];
my $srcdir = getcwd;
sub verbose_run {
@@ -335,7 +339,7 @@ my $testing = $distro_info->testing;
# Should specify multiple components for checking (see Bug#898738)
if (!verbose_run([length($ENV{DEBOOTSTRAP_SCRIPT}) ? $ENV{DEBOOTSTRAP_SCRIPT} : 'debootstrap',
'--include=debootstrap,debian-archive-keyring,gnupg,hello,systemd',
- '--variant=minbase',
+ "--variant=$variant",
'--components=main,contrib,non-free',
$testing, 'chroot.d', $mirror], '>&2')) {
BAIL_OUT("debootstrap failed: $?");
@@ -370,7 +374,7 @@ else {
'--bind-ro=/usr/sbin/debootstrap',
'--bind-ro=/usr/share/debootstrap',
'--',
- 'debootstrap', '--include=hello', '--variant=minbase',
+ 'debootstrap', '--include=hello', "--variant=$variant",
$testing, '/mnt/from-nspawn.d', $mirror], '>&2')) {
BAIL_OUT("debootstrap wrapped in systemd-nspawn failed: $?");
}