@@ -110,7 +110,7 @@ def build_mbed_spm_platform(target, toolchain, profile='release'):
110
110
:param profile: build profile.
111
111
"""
112
112
subprocess .check_call ([
113
- sys .executable , '-u' , TEST_PY_LOCATTION ,
113
+ sys .executable , TEST_PY_LOCATTION ,
114
114
'--greentea' ,
115
115
'--profile' , profile ,
116
116
'-t' , toolchain ,
@@ -122,17 +122,17 @@ def build_mbed_spm_platform(target, toolchain, profile='release'):
122
122
'--build-data' , os .path .join (ROOT , 'BUILD' , 'tests' ,
123
123
target , 'build_data.json' ),
124
124
'-n' , MBED_PSA_TESTS
125
- ], stdout = subprocess . PIPE )
125
+ ])
126
126
127
127
subprocess .check_call ([
128
- sys .executable , '-u' , MAKE_PY_LOCATTION ,
128
+ sys .executable , MAKE_PY_LOCATTION ,
129
129
'-t' , toolchain ,
130
130
'-m' , target ,
131
131
'--profile' , profile ,
132
132
'--source' , ROOT ,
133
133
'--build' , os .path .join (ROOT , 'BUILD' , target ),
134
134
'--artifact-name' , 'psa_release_1.0'
135
- ], stdout = subprocess . PIPE )
135
+ ])
136
136
137
137
138
138
def _tfm_test_defines (test ):
@@ -155,7 +155,7 @@ def build_tfm_platform(target, toolchain, profile='release'):
155
155
"""
156
156
for test in TFM_TESTS .keys ():
157
157
subprocess .check_call ([
158
- sys .executable , '-u' , TEST_PY_LOCATTION ,
158
+ sys .executable , TEST_PY_LOCATTION ,
159
159
'--greentea' ,
160
160
'--profile' , profile ,
161
161
'-t' , toolchain ,
@@ -170,14 +170,14 @@ def build_tfm_platform(target, toolchain, profile='release'):
170
170
stdout = subprocess .PIPE )
171
171
172
172
subprocess .check_call ([
173
- sys .executable , '-u' , MAKE_PY_LOCATTION ,
173
+ sys .executable , MAKE_PY_LOCATTION ,
174
174
'-t' , toolchain ,
175
175
'-m' , target ,
176
176
'--profile' , profile ,
177
177
'--source' , ROOT ,
178
178
'--build' , os .path .join (ROOT , 'BUILD' , target ),
179
179
'--app-config' , TFM_MBED_APP
180
- ], stdout = subprocess . PIPE )
180
+ ])
181
181
182
182
183
183
def commit_binaries (target , delivery_dir ):
@@ -191,24 +191,24 @@ def commit_binaries(target, delivery_dir):
191
191
changes_made = subprocess .call ([
192
192
'git' ,
193
193
'-C' , ROOT ,
194
- 'diff' , '--exit-code' ,
194
+ 'diff' , '--exit-code' , '--quiet' ,
195
195
delivery_dir
196
- ], stdout = subprocess . PIPE )
196
+ ])
197
197
198
198
if changes_made :
199
199
subprocess .check_call ([
200
200
'git' ,
201
201
'-C' , ROOT ,
202
202
'add' , os .path .relpath (delivery_dir , ROOT )
203
- ], stdout = subprocess . PIPE )
203
+ ])
204
204
205
205
commit_message = '-m\" Update secure binaries for {}\" ' .format (target )
206
206
subprocess .check_call ([
207
207
'git' ,
208
208
'-C' , ROOT ,
209
209
'commit' ,
210
210
commit_message
211
- ], stdout = subprocess . PIPE )
211
+ ])
212
212
213
213
214
214
def build_psa_platform (target , toolchain , delivery_dir , debug = False ,
0 commit comments