From 054b405982a8280eed786bc6b159f81407097dbe Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Mon, 26 Nov 2007 13:26:22 +0000
Subject: [PATCH] b=12649

escape "|" on log message to protect interpretation by shell
---
 lustre/tests/test-framework.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh
index 2b93c18485..74b4c5faaa 100644
--- a/lustre/tests/test-framework.sh
+++ b/lustre/tests/test-framework.sh
@@ -1057,6 +1057,7 @@ log() {
     MSG=${MSG//\(/\\\(}
     MSG=${MSG//\)/\\\)}
     MSG=${MSG//\;/\\\;}
+    MSG=${MSG//\|/\\\|}
     local NODES=$(nodes_list)
     for NODE in $NODES; do
         do_node $NODE $LCTL mark "$MSG" 2> /dev/null || true
-- 
GitLab