aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-26 18:22:46 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-04-26 19:59:13 +0200
commitc0700e3c7f36fc0bc969652c39cdd808de128d94 (patch)
tree6fd70695e4a6c3aedd903e0c886ce5f2d133235a /tests/runtests.pl
parent92e754de78fed63573091d650a2de49d58ad719a (diff)
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.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl28
1 files changed, 19 insertions, 9 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 65c093c33..33d841231 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -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
#