diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh
index ba9fa743134b3b076da97b4a5d8bac14d97c852f..007df6c914dd815393aa8d578ba674517b7dc8ff 100644
--- a/lustre/tests/test-framework.sh
+++ b/lustre/tests/test-framework.sh
@@ -1168,6 +1168,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