[Bug 2438] New: DistributionInformationTest fails if /etc/os-release file is emtpy

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Wed Jun 17 14:49:01 UTC 2015


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2438

            Bug ID: 2438
           Summary: DistributionInformationTest fails if /etc/os-release
                    file is emtpy
           Product: Thermostat
           Version: hg
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: agent
          Assignee: unassigned at icedtea.classpath.org
          Reporter: sgehwolf at redhat.com
                CC: thermostat at icedtea.classpath.org

On a system where an empty /etc/os-release file exists (for some reason)
DistributionInformationTest (and DistributionInformation) does not work
correctly.

Steps to reproduce (on a system where /etc/os-release can be modified; this may
be dangerous).
1. sudo echo "" > /etc/os-release
2. run DistributionInformationTest

This is for example reproducible in a minimal RHEL 6.6 mock root with
redhat-release and redhat-lsb-core packages are installed.

IMHO, we should check if /etc/os-release is empty before we move on and use it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20150617/31348a5b/attachment.html>


More information about the distro-pkg-dev mailing list