Commit 32f1ee4be01e04ffd485022bbf3a420ded73192d

Authored by Antonio Terceiro
1 parent 323089c4

Always make xvfb-run choose a free DISPLAY to avoid concurrency issues

lib/tasks/ci.rake
@@ -57,7 +57,7 @@ namespace :ci do @@ -57,7 +57,7 @@ namespace :ci do
57 57
58 sh 'ruby', '-Itest', *tests unless tests.empty? 58 sh 'ruby', '-Itest', *tests unless tests.empty?
59 sh 'cucumber', *features unless features.empty? 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 changed_plugins.each do |plugin| 62 changed_plugins.each do |plugin|
63 if $broken_plugins.include?(plugin) 63 if $broken_plugins.include?(plugin)
lib/tasks/plugins_tests.rake
@@ -116,7 +116,7 @@ def run_minitest files @@ -116,7 +116,7 @@ def run_minitest files
116 end 116 end
117 117
118 def run_cucumber(profile, files) 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 end 120 end
121 121
122 def custom_run(name, files, run=:all) 122 def custom_run(name, files, run=:all)