Package: ruby-moneta
Version: 0.7.20-2.1
Severity: serious
Tags: patch
User: [email protected]
Usertags: origin-ubuntu ubuntu-patch vivid
This is a recurrence of #746373; indeed it appears that that bug was
never properly fixed in the first place. I'm therefore filing this at
the same severity and CCing the uploader.
ruby-moneta/debian/ruby-tests.rb attempts to shut down mysqld after the
build, but fails to do so correctly. This is because the shutdown is by
way of an at_exit block in that script, but it invokes the main test
script with exec(), which replaces the ruby-tests.rb process and thus
means that the at_exit block is never run. It needs to use system()
instead.
* debian/ruby-tests.rb: Run script/parallel-tests using system() rather
than exec(), so that the at_exit block to shut down the test MySQL
server actually has a chance to run.
diff -Nru ruby-moneta-0.7.20/debian/ruby-tests.rb
ruby-moneta-0.7.20/debian/ruby-tests.rb
--- ruby-moneta-0.7.20/debian/ruby-tests.rb 2014-05-09 08:51:42.000000000
+0100
+++ ruby-moneta-0.7.20/debian/ruby-tests.rb 2014-12-05 16:42:52.000000000
+0000
@@ -35,4 +35,4 @@
require 'rbconfig'
ruby = File.join(RbConfig::CONFIG['bindir'],
RbConfig::CONFIG['ruby_install_name'])
-exec("#{ruby} script/parallel-tests")
+system("#{ruby} script/parallel-tests")
Thanks,
--
Colin Watson [[email protected]]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]