Public bug reported:

$ lsb_release -rd
Description:    Ubuntu 17.04
Release:        17.04

$ apt-cache policy s390-tools
s390-tools:
  Installed: 1.37.0-0ubuntu3
  Candidate: 1.37.0-0ubuntu3
  Version table:
 *** 1.37.0-0ubuntu3 500
        500 http://us.ports.ubuntu.com/ubuntu-ports zesty/main s390x Packages
        100 /var/lib/dpkg/status

When benign options such as --help or --version are passed to znetconf,
on a system with no ccwgroup devices (i.e. /sys/bus/ccwgroup does not
exist) the return code is non-zero. This is inconsistent behavior
compared to other utilities shipped in the s390-tools package and a
hindrance to dep8 autopkgtests tests. Please see LP bug 1616596 for
further discussion as to why this can be an impact. The unexpected
return code is shown here:

$ znetconf -v
znetconf: Error: There are no ccwgroup devices
$ echo $?
31

$ znetconf -h
znetconf: Error: There are no ccwgroup devices
$ echo $?
31

The expected result in the case of passing the -v and -h options is the
installed version and help listing.

** Affects: s390-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: s390x

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

Title:
  znetconf: Unexpected non-zero return code

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/s390-tools/+bug/1683507/+subscriptions

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

Reply via email to