# HG changeset patch # User Bryan O'Sullivan # Date 1174973305 25200 # Node ID 8f4c9ae918afe31642c5ff543f667e27ce7c5b0e # Parent a342a44e5e66d254e5238b7f661819d114698116 Run examples in predictable order if we're doing the lot. diff -r a342a44e5e66 -r 8f4c9ae918af en/examples/run-example --- a/en/examples/run-example Mon Mar 26 22:27:03 2007 -0700 +++ b/en/examples/run-example Mon Mar 26 22:28:25 2007 -0700 @@ -324,7 +324,9 @@ print >> sys.stderr, '%s: not a file, or not executable' % a errs += 1 return errs - for name in os.listdir(path): + names = os.listdir(path) + names.sort() + for name in names: if name == 'run-example' or name.startswith('.'): continue if name.endswith('.out') or name.endswith('~'): continue if name.endswith('.run'): continue