Skip to content

Commit bf1954c

Browse files
committed
Reverting debugging tests
1 parent fc730a2 commit bf1954c

File tree

3 files changed

+36
-20
lines changed

3 files changed

+36
-20
lines changed

azure-pipelines.yml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,38 @@ jobs:
33
job: Test
44
strategy:
55
matrix:
6+
LinuxPython27:
7+
python.version: '2.7'
8+
imageName: ubuntu-16.04
9+
extraActions: 'false'
10+
LinuxPython35:
11+
python.version: '3.5'
12+
imageName: ubuntu-16.04
13+
extraActions: 'false'
14+
LinuxPython36:
15+
python.version: '3.6'
16+
imageName: ubuntu-16.04
17+
extraActions: 'false'
18+
LinuxPython37:
19+
python.version: '3.7'
20+
imageName: ubuntu-16.04
21+
extraActions: 'true'
22+
MacPython27:
23+
python.version: '2.7'
24+
imageName: macos-10.13
25+
extraActions: 'false'
26+
MacPython35:
27+
python.version: '3.5'
28+
imageName: macos-10.13
29+
extraActions: 'false'
30+
MacPython36:
31+
python.version: '3.6'
32+
imageName: macos-10.13
33+
extraActions: 'false'
34+
MacPython37:
35+
python.version: '3.7'
36+
imageName: macos-10.13
37+
extraActions: 'false'
638
WindowsPython27:
739
python.version: '2.7'
840
imageName: vs2017-win2016
@@ -38,13 +70,7 @@ jobs:
3870
condition: eq(variables['extraActions'], 'true')
3971
displayName: 'Enforce code style'
4072
-
41-
script: "pip list"
42-
displayName: "List all dependencies"
43-
-
44-
script: "chcp"
45-
displayName: "Get encoding"
46-
-
47-
script: "python -m coverage run setup.py test -s test.test.mbed_gt_cmake_handlers"
73+
script: "python -m coverage run setup.py test"
4874
displayName: "Test mbed-os-tools"
4975
-
5076
script: "pip install ."

test/test/mbed_gt_target_info.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import sys
1817
import os
1918
import shutil
2019
import tempfile
@@ -288,7 +287,7 @@ def test_get_yotta_target_from_local_config_invalid_path(self):
288287
result = mbed_target_info.get_yotta_target_from_local_config("invalid_path.json")
289288

290289
self.assertIsNone(result)
291-
'''
290+
292291
def test_get_yotta_target_from_local_config_valid_path(self):
293292
payload = '{"build": { "target": "test_target"}}'
294293
handle, path = tempfile.mkstemp("test_file")
@@ -308,22 +307,14 @@ def test_get_yotta_target_from_local_config_failed_open(self):
308307
result = mbed_target_info.get_yotta_target_from_local_config(path)
309308

310309
self.assertIsNone(result)
311-
'''
312310

313311
def test_get_mbed_targets_from_yotta_local_module_invalid_path(self):
314312
result = mbed_target_info.get_mbed_targets_from_yotta_local_module("null", "invalid_path")
315313
self.assertEqual(result, [])
316314

317-
'''
318315
def test_get_mbed_targets_from_yotta_local_module_invalid_target(self):
319-
print("Attempting to create base_path")
320-
sys.stdout.flush()
321316
base_path = tempfile.mkdtemp()
322-
print("Attempting to create targ_path")
323-
sys.stdout.flush()
324317
targ_path = tempfile.mkdtemp("target-1", dir=base_path)
325-
print("Attempting to create targ_file")
326-
sys.stdout.flush()
327318
handle, targ_file = tempfile.mkstemp("target.json", dir=targ_path)
328319

329320
result = mbed_target_info.get_mbed_targets_from_yotta_local_module("null", base_path)
@@ -344,7 +335,6 @@ def test_get_mbed_targets_from_yotta_local_module_valid(self):
344335
self.assertEqual(result[0], "test_name")
345336

346337
shutil.rmtree(base_path)
347-
'''
348338

349339
def test_parse_mbed_target_from_target_json_missing_json_data(self):
350340
result = mbed_target_info.parse_mbed_target_from_target_json("null", "null")

test/test/mbed_gt_test_filtered_test_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def setUp(self):
7070

7171
def tearDown(self):
7272
pass
73-
"""
73+
7474
def test_filter_test_list(self):
7575
filtered_ctest_test_list = mbed_greentea_cli.create_filtered_test_list(self.ctest_test_list,
7676
self.test_by_names,
@@ -288,6 +288,6 @@ def test_prefix_filter_merge_n_multi_star_and_i(self):
288288

289289
self.assertEqual(len(expected), len(filtered_ctest_test_list))
290290
self.assertEqual(set(filtered_ctest_test_list.keys()), set(expected))
291-
"""
291+
292292
if __name__ == '__main__':
293293
unittest.main()

0 commit comments

Comments
 (0)