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

sanity test 103a syntax error using version_code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0, Lustre 2.12.6
    • Lustre 2.13.0, Lustre 2.12.3
    • None
    • 3
    • 9223372036854775807

    Description

              # LU-1482 mdd: Setting xattr are properly checked with and without ACLs
              if [ $MDS1_VERSION -gt $(version_code 2.8.55) ] ||
                      { [ $MDS1_VERSION -lt $(version_code 2.6) ] &&
                              [ $MDS1_VERSION -ge $(version_code 2.5.29) ]; }
      

      is incorrect since version_code() expects argument in the form of X.Y.Z-blah

      The result is this syntax error:

      [284] $ rm -rf d -- ok
      101 commands (101 passed, 0 failed)
      /home/green/git/lustre-release/lustre/tests/test-framework.sh: line 443: (2 << 16) | (6 << 8) | : syntax error: operand expected (error token is "| ")
      /home/green/git/lustre-release/lustre/tests/sanity.sh: line 8620: [: -a: integer expression expected
      performing setfacl...
      

      Attachments

        Activity

          People

            green Oleg Drokin
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: