Skip to content

Commit fedab48

Browse files
author
Steve Kirkland
committed
Correct logic for clear_cache
[full ci]
1 parent 53a6159 commit fedab48

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

.buildkite/unity.6000.full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ agents:
77
steps:
88
- group: ":hammer: Build Unity 6000 Test Fixtures"
99
steps:
10-
- label: ':macos: Build macos test fixture for Unity 2022'
10+
- label: ':macos: Build macos test fixture for Unity 6000'
1111
timeout_in_minutes: 30
1212
key: build-macos-fixture-6000
1313
depends_on: build-artifacts

features/steps/unity_steps.rb

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,16 @@ def execute_command(action, scenario_name = '')
1515

1616
When('I clear the Bugsnag cache') do
1717
case Maze::Helper.get_current_platform
18-
when 'macos', 'webgl'
19-
# Call executable directly rather than use open, which flakes on CI
20-
log = File.join(Dir.pwd, 'clear_cache.log')
21-
command = "#{Maze.config.app}/Contents/MacOS/Mazerunner --args -logfile #{log} > /dev/null"
22-
Maze::Runner.run_command(command, blocking: false)
23-
execute_command('clear_cache')
24-
25-
when 'windows'
26-
win_log = File.join(Dir.pwd, 'clear_cache.log')
27-
command = "#{Maze.config.app} --args -logfile #{win_log}"
28-
Maze::Runner.run_command(command, blocking: false)
29-
execute_command('clear_cache')
30-
31-
when 'android', 'ios'
18+
when 'macos', 'windows', 'android', 'ios', 'switch'
3219
execute_command('clear_cache')
3320
when 'browser'
3421
url = "http://localhost:#{Maze.config.port}/docs/index.html"
3522
$logger.debug "Navigating to URL: #{url}"
3623
step("I navigate to the URL \"#{url}\"")
3724
execute_command('clear_cache')
38-
39-
when 'switch'
40-
switch_run_on_target
41-
execute_command('clear_cache')
42-
4325
else
4426
raise "Platform #{platform} has not been considered"
4527
end
46-
47-
sleep 2
48-
4928
end
5029

5130
When('I run the game in the {string} state') do |state|

0 commit comments

Comments
 (0)