Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #20458 from ahal/gu-determinism
Browse files Browse the repository at this point in the history
Bug 1023198 - Sort Gu tests after os.walk for determinism, jgriffin
  • Loading branch information
ahal-test committed Jun 13, 2014
2 parents 163c6ae + c9e2c12 commit 6405d9b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/python/gaia-unit-tests/gaia_unit_test/main.py
Expand Up @@ -223,11 +223,12 @@ def cli():
# build a list of tests
appsdir = os.path.join(os.path.dirname(os.path.abspath(options.profile)), 'apps')
for root, dirs, files in os.walk(appsdir):
for file in files:
files.sort()
for f in files:
# only include tests in a 'unit' directory
roots = root.split(os.path.sep)
if 'unit' in roots:
full_path = os.path.relpath(os.path.join(root, file), appsdir)
full_path = os.path.relpath(os.path.join(root, f), appsdir)
if full_path.endswith('_test.js') and full_path not in disabled:
tests.append(full_path)

Expand Down

0 comments on commit 6405d9b

Please sign in to comment.