diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh
index a9992f8a940212fd7ef68216e887a3f04d6699a1..22398ef8f1d62338e9589bd8198f4ba9b4f1ece9 100644
--- a/lustre/tests/test-framework.sh
+++ b/lustre/tests/test-framework.sh
@@ -1417,7 +1417,7 @@ error_exit() {
 # (like ALWAYS_EXCEPT, but run the test and ignore the results.)
 # e.g. error_ignore 5494 "your message"
 error_ignore() {
-    TYPE="IGNORE (bz$1)"
+    local TYPE="IGNORE (bz$1)"
     shift
     error_noexit "$@"
 }