Skip to content

Commit

Permalink
Merge pull request #195 from bridadan/patch-listing
Browse files Browse the repository at this point in the history
Patching incorrect call to os.listdir (Fixes #194)
  • Loading branch information
mazimkhan authored Oct 10, 2016
2 parents 6e19509 + 4a30d70 commit 1ca0f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mbed_greentea/mbed_test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def copy_builds_between_test_specs(source, destination):
# Test specification file exists in current directory
gt_logger.gt_log("using 'test_spec.json' from current directory!")
test_spec_file_name = 'test_spec.json'
elif 'BUILD' in os.listdir():
elif 'BUILD' in os.listdir(os.getcwd()):
# Checking 'BUILD' directory for test specifications
# Using `os.listdir()` since it preserves case
test_spec_file_name_list = get_all_test_specs_from_build_dir('BUILD')
Expand Down

0 comments on commit 1ca0f3d

Please sign in to comment.