Whamcloud - gitweb
Add /proc/fs/lustre/pinger (contents "on" or "off") so that tests which require
authorshaver <shaver>
Fri, 22 Aug 2003 16:28:59 +0000 (16:28 +0000)
committershaver <shaver>
Fri, 22 Aug 2003 16:28:59 +0000 (16:28 +0000)
the pinger be present can check and error.

lustre/tests/replay-dual.sh

index e0742f3..c635450 100755 (executable)
@@ -151,6 +151,13 @@ build_test_filter
 
 gen_config
 start mds --reformat
+PINGER=`cat /proc/fs/lustre/pinger`
+
+if [ "$PINGER" != "on" ]; then
+    echo "ERROR: Lustre must be built with --enable-pinger for replay-dual"
+    stop mds
+fi
+
 start ost --reformat
 start client1
 start client2