95
95
96
96
97
97
def require_patch (program ):
98
- assert program in ['rfp' ]
98
+ assert program in ['rfp' , 'rfp-cli' , TEST_RFP_USR_LOCAL_RFP_CLI ]
99
99
100
100
101
101
os_path_isfile = os .path .isfile
@@ -109,7 +109,8 @@ def os_path_isfile_patch(filename):
109
109
110
110
@patch ('runners.core.ZephyrBinaryRunner.require' , side_effect = require_patch )
111
111
@patch ('runners.core.ZephyrBinaryRunner.check_call' )
112
- def test_rfp_init (cc , req , runner_config , tmpdir ):
112
+ @patch ('runners.rfp.RfpBinaryRunner.default_rfp' )
113
+ def test_rfp_init (dr , cc , req , runner_config , tmpdir ):
113
114
"""
114
115
Test commands using a runner created by constructor.
115
116
@@ -129,7 +130,8 @@ def test_rfp_init(cc, req, runner_config, tmpdir):
129
130
130
131
@patch ('runners.core.ZephyrBinaryRunner.require' , side_effect = require_patch )
131
132
@patch ('runners.core.ZephyrBinaryRunner.check_call' )
132
- def test_rfp_create (cc , req , runner_config , tmpdir ):
133
+ @patch ('runners.rfp.RfpBinaryRunner.default_rfp' )
134
+ def test_rfp_create (dr , cc , req , runner_config , tmpdir ):
133
135
"""
134
136
Test commands using a runner created from command line parameters.
135
137
@@ -154,7 +156,8 @@ def test_rfp_create(cc, req, runner_config, tmpdir):
154
156
155
157
@patch ('runners.core.ZephyrBinaryRunner.require' , side_effect = require_patch )
156
158
@patch ('runners.core.ZephyrBinaryRunner.check_call' )
157
- def test_rfp_create_with_speed (cc , req , runner_config , tmpdir ):
159
+ @patch ('runners.rfp.RfpBinaryRunner.default_rfp' )
160
+ def test_rfp_create_with_speed (dr , cc , req , runner_config , tmpdir ):
158
161
"""
159
162
Test commands using a runner created from command line parameters.
160
163
@@ -185,7 +188,8 @@ def test_rfp_create_with_speed(cc, req, runner_config, tmpdir):
185
188
186
189
@patch ('runners.core.ZephyrBinaryRunner.require' , side_effect = require_patch )
187
190
@patch ('runners.core.ZephyrBinaryRunner.check_call' )
188
- def test_rfp_create_with_erase (cc , req , runner_config , tmpdir ):
191
+ @patch ('runners.rfp.RfpBinaryRunner.default_rfp' )
192
+ def test_rfp_create_with_erase (dr , cc , req , runner_config , tmpdir ):
189
193
"""
190
194
Test commands using a runner created from command line parameters.
191
195
@@ -207,7 +211,8 @@ def test_rfp_create_with_erase(cc, req, runner_config, tmpdir):
207
211
208
212
@patch ('runners.core.ZephyrBinaryRunner.require' , side_effect = require_patch )
209
213
@patch ('runners.core.ZephyrBinaryRunner.check_call' )
210
- def test_rfp_create_with_verify (cc , req , runner_config , tmpdir ):
214
+ @patch ('runners.rfp.RfpBinaryRunner.default_rfp' )
215
+ def test_rfp_create_with_verify (dr , cc , req , runner_config , tmpdir ):
211
216
"""
212
217
Test commands using a runner created from command line parameters.
213
218
@@ -229,7 +234,8 @@ def test_rfp_create_with_verify(cc, req, runner_config, tmpdir):
229
234
230
235
@patch ('runners.core.ZephyrBinaryRunner.require' , side_effect = require_patch )
231
236
@patch ('runners.core.ZephyrBinaryRunner.check_call' )
232
- def test_rfp_create_with_rfp_cli (cc , req , runner_config , tmpdir ):
237
+ @patch ('runners.rfp.RfpBinaryRunner.default_rfp' )
238
+ def test_rfp_create_with_rfp_cli (dr , cc , req , runner_config , tmpdir ):
233
239
"""
234
240
Test commands using a runner created from command line parameters.
235
241
0 commit comments