hgbook

changeset 164:8f4c9ae918af

Run examples in predictable order if we're doing the lot.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Mar 26 22:28:25 2007 -0700 (2007-03-26)
parents a342a44e5e66
children 06d18465df03
files en/examples/run-example
line diff
     1.1 --- a/en/examples/run-example	Mon Mar 26 22:27:03 2007 -0700
     1.2 +++ b/en/examples/run-example	Mon Mar 26 22:28:25 2007 -0700
     1.3 @@ -324,7 +324,9 @@
     1.4                  print >> sys.stderr, '%s: not a file, or not executable' % a
     1.5                  errs += 1
     1.6          return errs
     1.7 -    for name in os.listdir(path):
     1.8 +    names = os.listdir(path)
     1.9 +    names.sort()
    1.10 +    for name in names:
    1.11          if name == 'run-example' or name.startswith('.'): continue
    1.12          if name.endswith('.out') or name.endswith('~'): continue
    1.13          if name.endswith('.run'): continue