Skip to content

Commit 28800fb

Browse files
committed
Fix broken tests
1 parent c641fd7 commit 28800fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/test/toolchains/api_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
@patch('tools.toolchains.arm.run_cmd')
2727
def test_arm_version_check(_run_cmd):
28+
set_targets_json_location()
2829
_run_cmd.return_value = ("""
2930
Product: ARM Compiler 5.06
3031
Component: ARM Compiler 5.06 update 5 (build 528)
@@ -52,6 +53,7 @@ def test_arm_version_check(_run_cmd):
5253

5354
@patch('tools.toolchains.iar.run_cmd')
5455
def test_iar_version_check(_run_cmd):
56+
set_targets_json_location()
5557
_run_cmd.return_value = ("""
5658
IAR ANSI C/C++ Compiler V7.80.1.28/LNX for ARM
5759
""", "", 0)
@@ -73,6 +75,7 @@ def test_iar_version_check(_run_cmd):
7375

7476
@patch('tools.toolchains.gcc.run_cmd')
7577
def test_gcc_version_check(_run_cmd):
78+
set_targets_json_location()
7679
_run_cmd.return_value = ("""
7780
arm-none-eabi-gcc (Arch Repository) 6.4.4
7881
Copyright (C) 2018 Free Software Foundation, Inc.

0 commit comments

Comments
 (0)