diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2015-07-28 19:15:44 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2015-07-30 08:07:11 -0700 |
commit | 8dc32a93fca3908e1f874393bcd56b89de269e2b (patch) | |
tree | 7beab83c0e6e369c096f2329ea13064a9cfd50fa /tests/include.rc | |
parent | 65a981e63c5a28ad917cab4a830f9b4e186c114a (diff) |
tests: reset IFS after changing it
Many thanks to fanghuang.data@yahoo.com for RC and BUG
https://bugzilla.redhat.com/show_bug.cgi?id=1245425#c0
BUG: 1245425
Change-Id: I411384ad2b81db9941ac136f4e584a3a965d53f1
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/11779
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/include.rc')
-rw-r--r-- | tests/include.rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc index 1272cdecbda..4a35a7d04cf 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -843,12 +843,15 @@ log_newer() msg=$2 logdir=`$CLI --print-logdir` + local x_ifs=$IFS IFS="[" for date in `grep -hr "$msg" $logdir | grep -v "G_LOG" | awk -F '[\]]' '{print $1}'` ; do if [ `date -d "$date" +%s` -gt $ts ] ; then + IFS=$x_ifs return 0; fi done 2>/dev/null + IFS=$x_ifs return 1 } |