# HG changeset patch # User Mads Kiilerich # Date 2011-05-05 22:34:10 # Node ID b230922eb0c312b622dc2610851102bb004d41a4 # Parent b68a4142039744aa3dffcd213fb4e56856b08dd8 check-code: fix checking for sh style in .t tests Restore checks after they were disabled by 64de9ca66511. diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -95,12 +95,13 @@ utestpats = [ [] ] -for p, m in testpats[0] + testpats[1]: - if p.startswith('^'): - p = uprefix + p[1:] - else: - p = uprefix + p - utestpats.append((p, m)) +for i in [0, 1]: + for p, m in testpats[i]: + if p.startswith('^'): + p = uprefix + p[1:] + else: + p = uprefix + p + utestpats[i].append((p, m)) utestfilters = [ (r"( *)(#([^\n]*\S)?)", repcomment), diff --git a/tests/test-treediscovery.t b/tests/test-treediscovery.t --- a/tests/test-treediscovery.t +++ b/tests/test-treediscovery.t @@ -11,7 +11,8 @@ Tests discovery against servers without Setup HTTP server control: - $ export remote=http://localhost:$HGPORT/ + $ remote=http://localhost:$HGPORT/ + $ export remote $ start() { > echo '[web]' > $1/.hg/hgrc > echo 'push_ssl = false' >> $1/.hg/hgrc