Public bug reported:

An undefined variable in MiniTest::Unit::Runner::Worker causes rake
execution to fail (status code 1) when performing tests. (Test case was
running rake with code from
https://github.com/blackducksoftware/ohloh_scm ).

The cause is attempting to use an undefined class variable @@installed_at_exit 
on method self.autorun of class Worker (line 328).
Possible solution: change 

at_exit {
# ...
} unless @@installed_at_exit

to

at_exit {
# ...
} unless (defined?(@@installed_at_exit) and @@installed_at_exit)

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: libruby1.9.1 1.9.3.484-2ubuntu1.2 [modified: 
usr/lib/ruby/1.9.1/test/unit.rb]
ProcVersionSignature: Ubuntu 3.13.0-85.129-generic 3.13.11-ckt36
Uname: Linux 3.13.0-85-generic i686
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: i386
CurrentDesktop: LXDE
Date: Thu May  5 09:49:38 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-02-16 (78 days ago)
InstallationMedia: Lubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140416.2)
SourcePackage: ruby1.9.1
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ruby1.9.1 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 trusty

** Patch added: "unit.rb.patch"
   
https://bugs.launchpad.net/bugs/1578547/+attachment/4656251/+files/unit.rb.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1578547

Title:
  undefined variable in MiniTest::Unit::Runner::Worker (unit.rb:328)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby1.9.1/+bug/1578547/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to