@@ -51,7 +51,7 @@ var tests = []struct {
5151 {
5252 commands : [][]string {
5353 {"make" , "test-good-rsa" },
54- {"pyocd-flashtool " , "-ce " },
54+ {"pyocd" , "erase" , "--chip " },
5555 {"make" , "flash_boot" },
5656 },
5757 expect : "Unable to find bootable image" ,
@@ -70,7 +70,7 @@ var tests = []struct {
7070 },
7171 {
7272 commands : [][]string {
73- {"pyocd-tool " , "reset" },
73+ {"pyocd" , "commander" , "-c " , "reset" },
7474 },
7575 expect : "Hello World from hello1" ,
7676 },
@@ -82,7 +82,7 @@ var tests = []struct {
8282 {
8383 commands : [][]string {
8484 {"make" , "test-good-ecdsa" },
85- {"pyocd-flashtool " , "-ce " },
85+ {"pyocd" , "erase" , "--chip " },
8686 {"make" , "flash_boot" },
8787 },
8888 expect : "Unable to find bootable image" ,
@@ -101,7 +101,7 @@ var tests = []struct {
101101 },
102102 {
103103 commands : [][]string {
104- {"pyocd-tool " , "reset" },
104+ {"pyocd" , "commander" , "-c " , "reset" },
105105 },
106106 expect : "Hello World from hello1" ,
107107 },
@@ -113,7 +113,7 @@ var tests = []struct {
113113 {
114114 commands : [][]string {
115115 {"make" , "test-overwrite" },
116- {"pyocd-flashtool " , "-ce " },
116+ {"pyocd" , "erase" , "--chip " },
117117 {"make" , "flash_boot" },
118118 },
119119 expect : "Unable to find bootable image" ,
@@ -132,7 +132,7 @@ var tests = []struct {
132132 },
133133 {
134134 commands : [][]string {
135- {"pyocd-tool " , "reset" },
135+ {"pyocd" , "commander" , "-c " , "reset" },
136136 },
137137 expect : "Hello World from hello2" ,
138138 },
@@ -144,7 +144,7 @@ var tests = []struct {
144144 {
145145 commands : [][]string {
146146 {"make" , "test-bad-rsa-upgrade" },
147- {"pyocd-flashtool " , "-ce " },
147+ {"pyocd" , "erase" , "--chip " },
148148 {"make" , "flash_boot" },
149149 },
150150 expect : "Unable to find bootable image" ,
@@ -163,7 +163,7 @@ var tests = []struct {
163163 },
164164 {
165165 commands : [][]string {
166- {"pyocd-tool " , "reset" },
166+ {"pyocd" , "commander" , "-c " , "reset" },
167167 },
168168 expect : "Hello World from hello1" ,
169169 },
@@ -175,7 +175,7 @@ var tests = []struct {
175175 {
176176 commands : [][]string {
177177 {"make" , "test-bad-ecdsa-upgrade" },
178- {"pyocd-flashtool " , "-ce " },
178+ {"pyocd" , "erase" , "--chip " },
179179 {"make" , "flash_boot" },
180180 },
181181 expect : "Unable to find bootable image" ,
@@ -194,7 +194,7 @@ var tests = []struct {
194194 },
195195 {
196196 commands : [][]string {
197- {"pyocd-tool " , "reset" },
197+ {"pyocd" , "commander" , "-c " , "reset" },
198198 },
199199 expect : "Hello World from hello1" ,
200200 },
@@ -206,7 +206,7 @@ var tests = []struct {
206206 {
207207 commands : [][]string {
208208 {"make" , "test-no-bootcheck" },
209- {"pyocd-flashtool " , "-ce " },
209+ {"pyocd" , "erase" , "--chip " },
210210 {"make" , "flash_boot" },
211211 },
212212 expect : "Unable to find bootable image" ,
@@ -225,7 +225,7 @@ var tests = []struct {
225225 },
226226 {
227227 commands : [][]string {
228- {"pyocd-tool " , "reset" },
228+ {"pyocd" , "commander" , "-c " , "reset" },
229229 },
230230 expect : "Hello World from hello1" ,
231231 },
@@ -237,7 +237,7 @@ var tests = []struct {
237237 {
238238 commands : [][]string {
239239 {"make" , "test-wrong-rsa" },
240- {"pyocd-flashtool " , "-ce " },
240+ {"pyocd" , "erase" , "--chip " },
241241 {"make" , "flash_boot" },
242242 },
243243 expect : "Unable to find bootable image" ,
@@ -256,7 +256,7 @@ var tests = []struct {
256256 },
257257 {
258258 commands : [][]string {
259- {"pyocd-tool " , "reset" },
259+ {"pyocd" , "commander" , "-c " , "reset" },
260260 },
261261 expect : "Hello World from hello1" ,
262262 },
@@ -268,7 +268,7 @@ var tests = []struct {
268268 {
269269 commands : [][]string {
270270 {"make" , "test-wrong-ecdsa" },
271- {"pyocd-flashtool " , "-ce " },
271+ {"pyocd" , "erase" , "--chip " },
272272 {"make" , "flash_boot" },
273273 },
274274 expect : "Unable to find bootable image" ,
@@ -287,7 +287,7 @@ var tests = []struct {
287287 },
288288 {
289289 commands : [][]string {
290- {"pyocd-tool " , "reset" },
290+ {"pyocd" , "commander" , "-c " , "reset" },
291291 },
292292 expect : "Hello World from hello1" ,
293293 },
0 commit comments