Skip to content

Commit 58c017c

Browse files
committed
ci(build): include press_back in tools/list assertion
press_back was added in 94f39e3 but build.yml's tools/list assertion still expected 32 tools. Update the expected set and the --yolo count check to 33.
1 parent 1c6405b commit 58c017c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
lines = sys.stdin.readlines()
172172
obj = json.loads(lines[1])
173173
tools = [t['name'] for t in obj['result']['tools']]
174-
expected = {'screenshot','start_recording','stop_recording','tap','swipe','drag','type_text','press_key','long_press','double_tap','shake','launch_app','open_url','press_home','press_app_switcher','spotlight','get_orientation','status','check_health','describe_screen','list_skills','get_skill','scroll_to','reset_app','measure','set_network','list_targets','switch_target','record_step','save_compiled','generate_skill','calibrate_component'}
174+
expected = {'screenshot','start_recording','stop_recording','tap','swipe','drag','type_text','press_key','long_press','double_tap','shake','launch_app','open_url','press_home','press_app_switcher','press_back','spotlight','get_orientation','status','check_health','describe_screen','list_skills','get_skill','scroll_to','reset_app','measure','set_network','list_targets','switch_target','record_step','save_compiled','generate_skill','calibrate_component'}
175175
assert set(tools) == expected, f'Expected: {expected}\nGot: {set(tools)}\nMissing: {expected - set(tools)}\nExtra: {set(tools) - expected}'
176176
print(f'tools/list: {len(tools)} tools registered')
177177
"
@@ -230,7 +230,7 @@ jobs:
230230
lines = sys.stdin.readlines()
231231
obj = json.loads(lines[1])
232232
tools = [t['name'] for t in obj['result']['tools']]
233-
assert len(tools) == 32, f'--yolo should show all 32 tools, got {len(tools)}: {tools}'
233+
assert len(tools) == 33, f'--yolo should show all 33 tools, got {len(tools)}: {tools}'
234234
print(f'--yolo alias: {len(tools)} tools (OK)')
235235
"
236236

0 commit comments

Comments
 (0)