[LU-10255] sanity 129 wrong comparison operator used Created: 17/Nov/17  Updated: 19/Dec/17  Resolved: 29/Nov/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.10.1, Lustre 2.11.0
Fix Version/s: Lustre 2.11.0, Lustre 2.10.3

Type: Bug Priority: Minor
Reporter: Nikolay Borisov Assignee: James Nunez (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 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" ] 


 Comments   
Comment by Gerrit Updater [ 17/Nov/17 ]

Nikolay Borisov (nborisov@suse.com) uploaded a new patch: https://review.whamcloud.com/30149
Subject: LU-10255 tests: Fix wrong comparison operator in sanity 129
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2ce68c96844d8d91878322b99db6364f16ef51a2

Comment by Gerrit Updater [ 17/Nov/17 ]

Nikolay Borisov (nborisov@suse.com) uploaded a new patch: https://review.whamcloud.com/30151
Subject: LU-10255 tests: Fix wrong comparison operator in sanity 129
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 010373cb5caf6bd454d666afc8ea9bd3e0d01e70

Comment by Gerrit Updater [ 29/Nov/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30149/
Subject: LU-10255 tests: Fix wrong comparison operator in sanity 129
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 35531ce8bd1bfd79808723ee843f5ca8e10e105d

Comment by Peter Jones [ 29/Nov/17 ]

Landed for 2.11

Comment by Gerrit Updater [ 19/Dec/17 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/30151/
Subject: LU-10255 tests: Fix wrong comparison operator in sanity 129
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 3dc028ea4916b1f2ca1f829c7338a5ff355f44d5

Generated at Sat Feb 10 02:33:25 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.