changeset 164:8f4c9ae918af

Run examples in predictable order if we're doing the lot.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 26 Mar 2007 22:28:25 -0700
parents a342a44e5e66
children 06d18465df03
files en/examples/run-example
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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