We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e4416b commit 79a2215Copy full SHA for 79a2215
1 file changed
test/compare_096_1
@@ -2,13 +2,15 @@
2
3
import sys
4
import os
5
+import re
6
7
# Warning: The following code assumes that this file is located in the svn
8
# checkout directory, and hasn't been moved:
9
ietfpath = os.path.abspath(__file__.rsplit("/", 1)[0] + "/..")
10
sys.path.append(ietfpath)
11
12
os.environ["DJANGO_SETTINGS_MODULE"] = "ietf.settings"
13
+prefixes = os.environ.get("URLPREFIX", "").split()
14
15
from difflib import unified_diff
16
import urllib2 as urllib
@@ -28,6 +30,14 @@ def fetch(url):
28
30
return html
29
31
32
for codes, url, master in testtuples:
33
+ if prefixes:
34
+ match = False
35
+ for prefix in prefixes:
36
+ if re.match(prefix, url[1:]):
37
+ match = True
38
+ break
39
+ if not match:
40
+ continue
41
print "Testing "+url
42
if not "200" in codes:
43
print " Skipping, not 200 code"
0 commit comments