summaryrefslogtreecommitdiffstats
path: root/test/TAR.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-26 13:02:02 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-26 13:02:02 (GMT)
commita925fbfbbecd978b6275ba0592e3bd21b0bd7781 (patch)
tree292853eb221ebe82c9e9b47c03c74b78a155add0 /test/TAR.py
parentdbb26a739bda888c1b7e206dbf6753ebadc68ebc (diff)
downloadSCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.zip
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.gz
SCons-a925fbfbbecd978b6275ba0592e3bd21b0bd7781.tar.bz2
Portability fixes for test. (Chad Austin)
Diffstat (limited to 'test/TAR.py')
-rw-r--r--test/TAR.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/TAR.py b/test/TAR.py
index 669bd0f..abd86ba 100644
--- a/test/TAR.py
+++ b/test/TAR.py
@@ -46,7 +46,9 @@ for opt, arg in opts:
if opt == '-f': out = arg
def process(outfile, name):
if os.path.isdir(name):
- for entry in os.listdir(name):
+ list = os.listdir(name)
+ list.sort()
+ for entry in list:
process(outfile, os.path.join(name, entry))
else:
outfile.write(open(name, 'rb').read())