Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-54006

"irqbalance --version" returns exit code of 1 instead of 0, confusing tests

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6
    • rhel-9.6
    • irqbalance
    • irqbalance-1.9.4-2.el9
    • No
    • Low
    • 3
    • rhel-sst-kernel-debug
    • ssg_core_kernel
    • 8
    • 12
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • CK-September-2024, CK-October-2024, CK-November-2024
    • Requested
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      "irqbalance --version" reports the version properly but then returns an exit code of 1 (error) instead of 0 (success), which confuses some tests.

      Please provide the package NVR for which bug is seen:

      irqbalance-2:1.9.2-3.el9

      How reproducible:

      always, trivially

      Steps to reproduce

      1. enter "/usr/sbin/irqbalance --version" from the shell
      2. enter "echo $?" then to check return value - it returns 1
      3.  

      Expected results

      Like all other tools known to me, when running with only  the "–version" argument, it should return 0 as exit code.

      Actual results

      Works correctly but returns 1.

              ltao@redhat.com Liu Tao
              rhn-support-jdluhos Jiri Dluhos
              Liu Tao Liu Tao
              Jiri Dluhos Jiri Dluhos
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: