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

runtests failed to read file name with backslash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • Lustre 2.16.0, Lustre 2.15.4
    • None
    • 3
    • 9223372036854775807

    Description

      If a file in /etc dir has a name with backslash, then runtests will fail because the following codes read the file considering the backslash as an escape character:

              cat $findfiles | tr "\0" "\n" | ( rc=0; while read f; do
                      diff -q "$f" "$dst/$f" || rc=18
              done
      

      We need to add "-r" option to read:

      -r     Backslash does not act as an escape character.  The backslash is considered to be part of the line.  In particular, a backslash-newline pair may not then be used as a line continuation.
      

      Attachments

        Activity

          People

            yujian Jian Yu
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: