Skip to content

Commit 6c6b0aa

Browse files
author
jan
committed
Add getCounterName based on BoardDescription
1 parent 4fcbb94 commit 6c6b0aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

io.sloeber.tests/src/io/sloeber/core/Shared.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public static String buildAndVerify(BoardDescription boardDescriptor, CodeDescri
199199
public static String buildAndVerify(BoardDescription boardDescriptor, CodeDescription codeDescriptor,
200200
CompileDescription compileOptions) throws Exception {
201201

202-
String projectName = getCounterName(boardDescriptor.getBoardID());
202+
String projectName = getCounterName(boardDescriptor);
203203
IExample example = codeDescriptor.getLinkedExample();
204204
if (example != null) {
205205
Collection<IArduinoLibraryVersion> lib = example.getArduinoLibraries();
@@ -336,6 +336,11 @@ public static String getCounterName(String name) {
336336
return getCounterName("%05d_%s", name);
337337
}
338338

339+
public static String getCounterName( BoardDescription boardDescriptor) {
340+
return String.format("%05d_%s_%s", Integer.valueOf(myTestCounter++), boardDescriptor.getVendor(),boardDescriptor.getBoardName());
341+
}
342+
343+
339344
public static String getCounterName(String format, String name) {
340345
return String.format(format, Integer.valueOf(myTestCounter++), name);
341346
}

0 commit comments

Comments
 (0)