summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-21 20:58:23 -0700
committerJelmer Vernooij <jelmer@samba.org>2010-09-21 22:54:37 -0700
commit7c1b00f4a80ee5eb91333cad9c27ba699c6b2e3b (patch)
treee2ceef820d026bff4beaf222ee3608c8c883cfa0 /selftest
parentbf907d2c4a7c9c4d95d2af644eb5f8dc97e073c3 (diff)
downloadsamba-7c1b00f4a80ee5eb91333cad9c27ba699c6b2e3b.tar.gz
samba-7c1b00f4a80ee5eb91333cad9c27ba699c6b2e3b.tar.bz2
samba-7c1b00f4a80ee5eb91333cad9c27ba699c6b2e3b.zip
selftest: Use idlist testing for python tests.
Diffstat (limited to 'selftest')
-rwxr-xr-xselftest/selftest.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl
index 37433de42d..a21ecbabe4 100755
--- a/selftest/selftest.pl
+++ b/selftest/selftest.pl
@@ -633,7 +633,7 @@ sub read_testlist($)
open(IN, $filename) or die("Unable to open $filename: $!");
while (<IN>) {
- if (/-- TEST(-LOADLIST|IDLIST)? --\n/) {
+ if (/-- TEST(-LOADLIST|-IDLIST|) --\n/) {
my $supports_loadlist = (defined($1) and $1 eq "-LOADLIST");
my $supports_idlist = (defined($1) and $1 eq "-IDLIST");
my $name = <IN>;
@@ -955,7 +955,8 @@ $envvarstr
}
$cmd .= " --load-list=$listid_file";
} elsif ($$_[4]) {
- $cmd .= join(' ', @{$individual_tests->{$name}});
+ $cmd =~ s/\s+[^\s]+\s*$//;
+ $cmd .= " " . join(' ', @{$individual_tests->{$name}});
}
}