mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 04:55:31 +08:00
add debugging for docker test
This commit is contained in:
parent
b05ada3208
commit
be0366d587
@ -12,6 +12,7 @@
|
|||||||
# => SINGLE_PLUGIN set to plugin name to only run plugin-specific rspec tests (you'll probably want to SKIP_CORE as well)
|
# => SINGLE_PLUGIN set to plugin name to only run plugin-specific rspec tests (you'll probably want to SKIP_CORE as well)
|
||||||
# => BISECT set to 1 to run rspec --bisect (applies to core rspec tests only)
|
# => BISECT set to 1 to run rspec --bisect (applies to core rspec tests only)
|
||||||
# => RSPEC_SEED set to seed to use for rspec tests (applies to core rspec tests only)
|
# => RSPEC_SEED set to seed to use for rspec tests (applies to core rspec tests only)
|
||||||
|
# => PAUSE_ON_TERMINATE set to 1 to pause prior to terminating redis and pg
|
||||||
#
|
#
|
||||||
# Other useful environment variables (not specific to this rake task)
|
# Other useful environment variables (not specific to this rake task)
|
||||||
# => COMMIT_HASH used by the discourse_test docker image to load a specific commit of discourse
|
# => COMMIT_HASH used by the discourse_test docker image to load a specific commit of discourse
|
||||||
@ -118,6 +119,11 @@ task 'docker:test' do
|
|||||||
ensure
|
ensure
|
||||||
puts "Terminating"
|
puts "Terminating"
|
||||||
|
|
||||||
|
if ENV['PAUSE_ON_TERMINATE']
|
||||||
|
puts "Pausing prior to termination"
|
||||||
|
gets
|
||||||
|
end
|
||||||
|
|
||||||
Process.kill("TERM", @redis_pid) if @redis_pid
|
Process.kill("TERM", @redis_pid) if @redis_pid
|
||||||
Process.kill("TERM", @pg_pid) if @pg_pid
|
Process.kill("TERM", @pg_pid) if @pg_pid
|
||||||
Process.wait @redis_pid if @redis_pid
|
Process.wait @redis_pid if @redis_pid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user