runtests: use a DISABLED.local file too
... and have git ignore that. Allows for a dev to add tests to ignore in local tests and yet don't obstruct a normal git work flow.
This commit is contained in:
@@ -5002,19 +5002,29 @@ if(!$listonly) {
|
||||
# Fetch all disabled tests, if there are any
|
||||
#
|
||||
|
||||
if(open(D, "<$TESTDIR/DISABLED")) {
|
||||
while(<D>) {
|
||||
if(/^ *\#/) {
|
||||
# allow comments
|
||||
next;
|
||||
}
|
||||
if($_ =~ /(\d+)/) {
|
||||
$disabled{$1}=$1; # disable this test number
|
||||
sub disabledtests {
|
||||
my ($file) = @_;
|
||||
|
||||
if(open(D, "<$file")) {
|
||||
while(<D>) {
|
||||
if(/^ *\#/) {
|
||||
# allow comments
|
||||
next;
|
||||
}
|
||||
if($_ =~ /(\d+)/) {
|
||||
$disabled{$1}=$1; # disable this test number
|
||||
}
|
||||
}
|
||||
close(D);
|
||||
}
|
||||
close(D);
|
||||
}
|
||||
|
||||
# globally disabled tests
|
||||
disabledtests("$TESTDIR/DISABLED");
|
||||
|
||||
# locally disabled tests, ignored by git etc
|
||||
disabledtests("$TESTDIR/DISABLED.local");
|
||||
|
||||
#######################################################################
|
||||
# If 'all' tests are requested, find out all test numbers
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user