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

sanity 129 wrong comparison operator used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.11.0, Lustre 2.10.3
    • Lustre 2.10.1, Lustre 2.11.0
    • None
    • 3
    • 9223372036854775807

    Description

      When sanity 129 is run the following error from bash is printed (this doesn't cause direct test failure):

      ./sanity.sh: line 9244: [: true: integer expression expected

      This is due to has_warning being set to either true/false but those values aren't being evaluated as integers but as strings. So the correct comparison is actually:

       [ $has_warnings = "false" ] 

      Attachments

        Activity

          People

            jamesanunez James Nunez (Inactive)
            nborisov Nikolay Borisov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: