From: adilger Date: Sun, 8 Sep 2002 19:36:50 +0000 (+0000) Subject: Allow an objid to be specified on the CLI (via OID=) to allow multiple X-Git-Tag: v1_7_100~4820 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=14a287503bd44fecc6e39d43e1b7fe1bc4a545ff Allow an objid to be specified on the CLI (via OID=) to allow multiple hosts to run on the same object and/or only do rewrite or read tests on an existing object. --- diff --git a/lustre/tests/runregression-brw.sh b/lustre/tests/runregression-brw.sh index 0d81b4e..ab9224a 100644 --- a/lustre/tests/runregression-brw.sh +++ b/lustre/tests/runregression-brw.sh @@ -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