X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=3c5d7537640fbb6e3eb090d2d22ed4632ca02fc5;hp=8572a4e7c95999d4d820891e87186921289c5f8a;hb=f4547f0569774eb794fb143362e201f658415f4c;hpb=bc962bde3b109b99c924137ed281d9400637e295 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8572a4e..3c5d753 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -5497,7 +5497,9 @@ function get_named_value() done } -export CACHE_MAX=`$LCTL get_param -n llite.*.max_cached_mb | head -n 1` +export CACHE_MAX=$($LCTL get_param -n llite.*.max_cached_mb | + awk '/^max_cached_mb/ { print $2 }') + cleanup_101a() { $LCTL set_param -n llite.*.max_cached_mb $CACHE_MAX trap 0