Commit 32f1ee4be01e04ffd485022bbf3a420ded73192d
1 parent
323089c4
Exists in
master
and in
15 other branches
Always make xvfb-run choose a free DISPLAY to avoid concurrency issues
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
lib/tasks/ci.rake
... | ... | @@ -57,7 +57,7 @@ namespace :ci do |
57 | 57 | |
58 | 58 | sh 'ruby', '-Itest', *tests unless tests.empty? |
59 | 59 | sh 'cucumber', *features unless features.empty? |
60 | - sh 'xvfb-run', 'cucumber', '-p', 'selenium', *features unless features.empty? | |
60 | + sh 'xvfb-run', '-a', 'cucumber', '-p', 'selenium', *features unless features.empty? | |
61 | 61 | |
62 | 62 | changed_plugins.each do |plugin| |
63 | 63 | if $broken_plugins.include?(plugin) | ... | ... |
lib/tasks/plugins_tests.rake
... | ... | @@ -116,7 +116,7 @@ def run_minitest files |
116 | 116 | end |
117 | 117 | |
118 | 118 | def run_cucumber(profile, files) |
119 | - sh 'xvfb-run', 'ruby', '-S', 'cucumber', '--profile', profile.to_s, '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *files | |
119 | + sh 'xvfb-run', '-a', 'ruby', '-S', 'cucumber', '--profile', profile.to_s, '--format', ENV['CUCUMBER_FORMAT'] || 'progress' , *files | |
120 | 120 | end |
121 | 121 | |
122 | 122 | def custom_run(name, files, run=:all) | ... | ... |