From 4a30d70db84db3a93d1a48a29d9c331be5b98733 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 7 Oct 2016 10:45:57 -0500 Subject: [PATCH] Patching incorrect call to os.listdir --- mbed_greentea/mbed_test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbed_greentea/mbed_test_api.py b/mbed_greentea/mbed_test_api.py index 7637d4fa..dcdf3461 100644 --- a/mbed_greentea/mbed_test_api.py +++ b/mbed_greentea/mbed_test_api.py @@ -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')