Whamcloud - gitweb
LU-10255 tests: Fix wrong comparison operator in sanity 129 51/30151/2
authorNikolay Borisov <nborisov@suse.com>
Fri, 17 Nov 2017 14:23:04 +0000 (16:23 +0200)
committerJohn L. Hammond <john.hammond@intel.com>
Tue, 19 Dec 2017 18:29:22 +0000 (18:29 +0000)
commit3dc028ea4916b1f2ca1f829c7338a5ff355f44d5
treef287651480ce12ab564bc24baeaf12ece62f129a
parent0e8d207cfebc14d7263a8e13dca27b8c69ad2bb5
LU-10255 tests: Fix wrong comparison operator in sanity 129

Currently sanity 129 uses numerica (-eq) operator to check whether
the has_warning variable is true or false depending on whether
expected warnings have been detected. This is wrong since bash
doesn't really have bolean types and true/false are not evaluated to
1/0. This results in the following bash error when the test is run:

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

Fix it by using the correct string operator '=' to check for
correct value.

Test-Paramters: clientdistro=sles12sp2 testlist=sanity
Test-Paramters: clientdistro=sles12sp3 testlist=sanity

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Change-Id: I071dcb3001ea9b2e5806d346dcd48bfcaf3297e9
Reviewed-on: https://review.whamcloud.com/30151
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Tested-by: Jenkins
Reviewed-by: Saurabh Tandan <saurabh.tandan@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/tests/sanity.sh