summaryrefslogtreecommitdiffstats
path: root/test/TAR
diff options
context:
space:
mode:
Diffstat (limited to 'test/TAR')
-rw-r--r--test/TAR/TARFLAGS.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/TAR/TARFLAGS.py b/test/TAR/TARFLAGS.py
index 5864241..fcf7394 100644
--- a/test/TAR/TARFLAGS.py
+++ b/test/TAR/TARFLAGS.py
@@ -49,7 +49,9 @@ for opt, arg in cmd_opts:
else: opt_string = opt_string + ' ' + opt
def process(outfile, name):
if os.path.isdir(name):
- for entry in os.listdir(name):
+ entries = os.listdir(name)
+ entries.sort()
+ for entry in entries:
process(outfile, os.path.join(name, entry))
else:
outfile.write(open(name, 'rb').read())