From: Emoly Liu Date: Mon, 19 Sep 2016 06:13:16 +0000 (+0800) Subject: LU-8021 tests: Add leading $ to "DEBUGSAVE_SERVER" X-Git-Tag: 2.8.59~42 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F22586%2F3;p=fs%2Flustre-release.git LU-8021 tests: Add leading $ to "DEBUGSAVE_SERVER" Add leading $ to "DEBUGSAVE_SERVER", otherwise the check is always true and the code tries to restore an empty string and it produces a lot of spurious error messages in the test logs. Test-Parameters: trivial Signed-off-by: Emoly Liu Change-Id: I4e9206bc312af22fea22bf6ab634469439008003 Reviewed-on: http://review.whamcloud.com/22586 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: James Nunez Reviewed-by: Parinay Kondekar --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 95ddf56..a9097c1 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -4731,7 +4731,7 @@ debugrestore() { true DEBUGSAVE="" - [ -n "DEBUGSAVE_SERVER" ] && + [ -n "$DEBUGSAVE_SERVER" ] && do_nodes $(comma_list $(all_server_nodes)) \ "$LCTL set_param debug=\\\"${DEBUGSAVE_SERVER}\\\"" || true