mirror of https://github.com/ARMmbed/mbed-os.git
Apply suggestions from code review
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>pull/10257/head
parent
63ea3ebe00
commit
583e787ca1
|
@ -20,7 +20,7 @@ from os.path import join, abspath, dirname, normpath
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import json
|
import json
|
||||||
from shutil import copy
|
from shutil import copy
|
||||||
from past.builtins import str
|
from past.builtins import basestring
|
||||||
|
|
||||||
# Be sure that the tools directory is in the search path
|
# Be sure that the tools directory is in the search path
|
||||||
ROOT = abspath(join(dirname(__file__), ".."))
|
ROOT = abspath(join(dirname(__file__), ".."))
|
||||||
|
@ -111,7 +111,7 @@ if __name__ == '__main__':
|
||||||
test_names = []
|
test_names = []
|
||||||
for test_id in list(TEST_MAP.keys()):
|
for test_id in list(TEST_MAP.keys()):
|
||||||
# Prevents tests with multiple source dirs from being checked
|
# Prevents tests with multiple source dirs from being checked
|
||||||
if isinstance(TEST_MAP[test_id].source_dir, str):
|
if isinstance(TEST_MAP[test_id].source_dir, basestring):
|
||||||
test_path = normpath(TEST_MAP[test_id].source_dir)
|
test_path = normpath(TEST_MAP[test_id].source_dir)
|
||||||
for directory in directories:
|
for directory in directories:
|
||||||
if directory in test_path:
|
if directory in test_path:
|
||||||
|
|
Loading…
Reference in New Issue