From 1479b6275533b279aad72a1d1cdc481aae05341d Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Wed, 28 Jun 2023 15:11:03 +0530 Subject: [PATCH] LU-16929 tests: Fix syntax error under ha.sh Fix bash syntax error under ha.sh/ha_lfsck_repaired Test-Parameters: trivial Fixes: 1a7c352e9 ("LU-11504 tests: trigger lfsck after/during failover/failback") Signed-off-by: Arshad Hussain Change-Id: Ic31099a9438e1174013843156147cbb3bd98366a Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51482 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Timothy Day Reviewed-by: Jian Yu Reviewed-by: Elena Reviewed-by: Oleg Drokin --- lustre/tests/ha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/ha.sh b/lustre/tests/ha.sh index 0cfd595..987387b 100755 --- a/lustre/tests/ha.sh +++ b/lustre/tests/ha.sh @@ -840,7 +840,7 @@ ha_lfsck_repaired() n=$(cat $ha_lfsck_log | awk '/repaired/ {print $3}' |\ awk '{sum += $1} END { print sum }') - [ $n -eq 0] || + (( n == 0 )) || { ha_info "Total repaired: $n"; ha_touch fail; return 1; } return 0 -- 1.8.3.1