File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ environment variables).
51
51
52
52
def _utp_build_message (ctx ):
53
53
"""Builds a RunnerConfig message (from runner_config.proto)."""
54
- primary_device_id = struct (id = environment_variable ("DEVICE_UUID" ), friendly_name = "primary" )
54
+ primary_device_id = struct (
55
+ id = environment_variable ("DEVICE_UUID" ),
56
+ friendly_name = ctx .attr .device_friendly_name ,
57
+ )
55
58
primary_test_fixture_id = struct (id = environment_variable ("TEST_FIXTURE_UUID" ))
56
59
installables = []
57
60
if ctx .attr .test_app :
@@ -413,6 +416,10 @@ utp_test = rule(
413
416
providers = [[utp_provider .UTPExtensionInfo ]],
414
417
mandatory = True ,
415
418
),
419
+ device_friendly_name = attr .string (
420
+ default = "primary" ,
421
+ doc = "Friendly name to use for the primary device in logging" ,
422
+ ),
416
423
entry_point = attr .label (
417
424
providers = [[UTPEntryPointInfo ]],
418
425
mandatory = True ,
You can’t perform that action at this time.
0 commit comments