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

bad test in sanityn test_80b

XMLWordPrintable

    • 3
    • 9223372036854775807

      In sanityn test_80b() the condition rc != 0 || rc != 16 is true for all values of rc:

               	while true; do
                              mdt_idx=$((RANDOM % MDSCOUNT))
      			$LFS migrate -m $mdt_idx $migrate_dir1 2&>/dev/null ||
                                      rc=$?
      			[ $rc -ne 0 -o $rc -ne 16 ] || break
                      done
      

      Some grepping turned up three more tests:

      lustre-release$ git grep --line-number -E '\$[^ ]+ -ne 0 -o \$[^ ]+ -ne '
      lustre/tests/sanityn.sh:3448:                   [ $rc -ne 0 -o $rc -ne 16 ] || break
      lustre/tests/sanityn.sh:3483:           [ $rc1 -ne 0 -o $rc1 -ne 1 ] || {
      lustre/tests/sanityn.sh:3497:                   [ $rc1 -ne 0 -o $rc1 -ne 1 ] || {
      lustre/tests/sanityn.sh:3509:                   [ $rc1 -ne 0 -o $rc1 -ne 1 ] || {
      

            jamesanunez James Nunez (Inactive)
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: