Whamcloud - gitweb
Allow an objid to be specified on the CLI (via OID=<foo>) to allow multiple
authoradilger <adilger>
Sun, 8 Sep 2002 19:36:50 +0000 (19:36 +0000)
committeradilger <adilger>
Sun, 8 Sep 2002 19:36:50 +0000 (19:36 +0000)
hosts to run on the same object and/or only do rewrite or read tests on an
existing object.

lustre/tests/runregression-brw.sh

index 0d81b4e..ab9224a 100644 (file)
@@ -45,7 +45,7 @@ if [  -z "`$OBDCTL device_list 2> /dev/null | grep osc`" ]; then
        setup_client || exit -1
 fi
 
-OID=`$OBDCTL --device '$OSCDEV' create 1 | awk '/is object id/ { print $6 }'`
+[ -z "$OID" ] && OID=`$OBDCTL --device '$OSCDEV' create 1 | awk '/is object id/ { print $6 }'`
 [ -z "$OID" ] && echo "error creating object" 1>&2 && exit 1
 
 # TODO: obdctl needs to check on the progress of each forked thread