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

Variable incorrectly used in sanity-flr/203

Details

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

    Description

      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'?).
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      Attachments

        Issue Links

          Activity

            [LU-15614] Variable incorrectly used in sanity-flr/203
            pjones Peter Jones added a comment -

            Landed for 2.15

            pjones Peter Jones added a comment - Landed for 2.15

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46690/
            Subject: LU-15614 tests: Variable incorrectly used in sanity-flr/203
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 94dee86fbcf72ded71c633f7de1bdf2713d6d769

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46690/ Subject: LU-15614 tests: Variable incorrectly used in sanity-flr/203 Project: fs/lustre-release Branch: master Current Patch Set: Commit: 94dee86fbcf72ded71c633f7de1bdf2713d6d769

            "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/46690
            Subject: LU-15614 tests: Variable incorrectly used in sanity-flr/203
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: b81fac3667fd4203628c5a23a5b8b4f31ef7a67b

            gerrit Gerrit Updater added a comment - "Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/46690 Subject: LU-15614 tests: Variable incorrectly used in sanity-flr/203 Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b81fac3667fd4203628c5a23a5b8b4f31ef7a67b

            People

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

              Dates

                Created:
                Updated:
                Resolved: