@@ -235,7 +235,7 @@ func TestUploadCommands(t *testing.T) {
235
235
require .Contains (t , string (d ), "testdata/sketchbook_with_custom_hardware/test.hex" )
236
236
237
237
// non-existent file
238
- exitCode , d = executeWithArgs (t , "upload" , "-i" , currSketchbookDir .Join ("test123.hex" ).String (), "-b" , "test:avr:testboard" , "-p" , "/dev/ttyACM0" )
238
+ exitCode , _ = executeWithArgs (t , "upload" , "-i" , currSketchbookDir .Join ("test123.hex" ).String (), "-b" , "test:avr:testboard" , "-p" , "/dev/ttyACM0" )
239
239
require .NotZero (t , exitCode , "exit code" )
240
240
241
241
// sketch
@@ -246,11 +246,11 @@ func TestUploadCommands(t *testing.T) {
246
246
require .Contains (t , string (d ), "testdata/sketchbook_with_custom_hardware/TestSketch/TestSketch.test.avr.testboard.hex" )
247
247
248
248
// sketch without build
249
- exitCode , d = executeWithArgs (t , "upload" , currSketchbookDir .Join ("TestSketch2" ).String (), "-b" , "test:avr:testboard" , "-p" , "/dev/ttyACM0" )
249
+ exitCode , _ = executeWithArgs (t , "upload" , currSketchbookDir .Join ("TestSketch2" ).String (), "-b" , "test:avr:testboard" , "-p" , "/dev/ttyACM0" )
250
250
require .NotZero (t , exitCode , "exit code" )
251
251
252
252
// platform without 'recipe.output.tmp_file' property
253
- exitCode , d = executeWithArgs (t , "upload" , "-i" , currSketchbookDir .Join ("test.hex" ).String (), "-b" , "test2:avr:testboard" , "-p" , "/dev/ttyACM0" )
253
+ exitCode , _ = executeWithArgs (t , "upload" , "-i" , currSketchbookDir .Join ("test.hex" ).String (), "-b" , "test2:avr:testboard" , "-p" , "/dev/ttyACM0" )
254
254
require .NotZero (t , exitCode , "exit code" )
255
255
}
256
256
0 commit comments