From: James Nunez Date: Fri, 10 May 2013 14:44:00 +0000 (-0600) Subject: LU-3195 tests: Interop 2.3.0<->2.3.63 sanity-quota test_6 X-Git-Tag: 2.4.51~17 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=8506754fbd50de5d10a4055d6efc5b43111ebe35 LU-3195 tests: Interop 2.3.0<->2.3.63 sanity-quota test_6 sanity-quota test_6 is picking up watchdog messages from prevous tests. The fix is clearing dmesg at the beginning of test_6. This also allowed us to remove some of strings that the awk command is looking for, i.e. the subtest name. Signed-off-by: James Nunez Change-Id: I39b93916818b64560e82aa01d839d49c994693ce Reviewed-on: http://review.whamcloud.com/6313 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 78b62a9..13e5373 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -860,6 +860,10 @@ run_test 5 "Chown & chgrp successfully even out of block/file quota" test_6() { local LIMIT=3 # 3M + # Clear dmesg so watchdog is not triggered by previous + # test output + do_facet ost1 dmesg -c > /dev/null + setup_quota_test trap cleanup_quota_test EXIT @@ -918,12 +922,8 @@ test_6() { # no watchdog is triggered do_facet ost1 dmesg > $TMP/lustre-log-${TESTNAME}.log - watchdog=$(awk '/sanity-quota test 6/ {start = 1;} - /Service thread pid/ && /was inactive/ { - if (start) { - print; - } - }' $TMP/lustre-log-${TESTNAME}.log) + watchdog=$(awk '/Service thread pid/ && /was inactive/ \ + { print; }' $TMP/lustre-log-${TESTNAME}.log) [ -z "$watchdog" ] || error "$watchdog" rm -f $TMP/lustre-log-${TESTNAME}.log