mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
selftest: Use idlist testing for python tests.
This commit is contained in:
@ -633,7 +633,7 @@ sub read_testlist($)
|
|||||||
open(IN, $filename) or die("Unable to open $filename: $!");
|
open(IN, $filename) or die("Unable to open $filename: $!");
|
||||||
|
|
||||||
while (<IN>) {
|
while (<IN>) {
|
||||||
if (/-- TEST(-LOADLIST|IDLIST)? --\n/) {
|
if (/-- TEST(-LOADLIST|-IDLIST|) --\n/) {
|
||||||
my $supports_loadlist = (defined($1) and $1 eq "-LOADLIST");
|
my $supports_loadlist = (defined($1) and $1 eq "-LOADLIST");
|
||||||
my $supports_idlist = (defined($1) and $1 eq "-IDLIST");
|
my $supports_idlist = (defined($1) and $1 eq "-IDLIST");
|
||||||
my $name = <IN>;
|
my $name = <IN>;
|
||||||
@ -955,7 +955,8 @@ $envvarstr
|
|||||||
}
|
}
|
||||||
$cmd .= " --load-list=$listid_file";
|
$cmd .= " --load-list=$listid_file";
|
||||||
} elsif ($$_[4]) {
|
} elsif ($$_[4]) {
|
||||||
$cmd .= join(' ', @{$individual_tests->{$name}});
|
$cmd =~ s/\s+[^\s]+\s*$//;
|
||||||
|
$cmd .= " " . join(' ', @{$individual_tests->{$name}});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,10 +102,9 @@ planperltestsuite() {
|
|||||||
planpythontestsuite() {
|
planpythontestsuite() {
|
||||||
name=$1
|
name=$1
|
||||||
env=$2
|
env=$2
|
||||||
shift 2
|
module="$3"
|
||||||
other_args="$*"
|
shift 3
|
||||||
cmdline="$SUBUNITRUN $other_args"
|
plantestsuite_idlist "$name" "$env" python -m subunit.run $module
|
||||||
plantestsuite "$name" "$env" $cmdline
|
|
||||||
}
|
}
|
||||||
|
|
||||||
plansmbtorturetestsuite() {
|
plansmbtorturetestsuite() {
|
||||||
|
Reference in New Issue
Block a user