Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-15614

Variable incorrectly used in sanity-flr/203

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Lustre 2.15.0
    • None
    • None
    • 3
    • 9223372036854775807

      Under sanity-flr.sh/203 variable 'old_id' and
       'new_id' is defined incorrectly as 'oldid' and
       'newid'. This leads to a comparison between the
       two as always true and leading to false positive.
       This was exposed using shellcheck.
          
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          In lustre/tests/sanity-flr.sh line 3258:
          [[ x$oldid = x$newid ]] ||
          ^-- SC2154: oldid is referenced but not assigned (did you mean 'old_id'?).
          ^-- SC2154: newid is referenced but not assigned (did you mean 'new_id'?).
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

            arshad512 Arshad Hussain
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: