mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
rcutorture: Add datestamp argument to kvm.sh
Allow datestamp to be specified to allow tests to be broken up and run in parallel. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Greg KH <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c87b9c601a
commit
847bfd2543
@ -50,11 +50,13 @@ configs=" sysidleY.2013.06.19a \
|
|||||||
PT2-NH \
|
PT2-NH \
|
||||||
NT1-nh \
|
NT1-nh \
|
||||||
NT3-NH"
|
NT3-NH"
|
||||||
|
ds=`date +%Y.%m.%d-%H:%M:%S`
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
echo "Usage: $scriptname optional arguments:"
|
echo "Usage: $scriptname optional arguments:"
|
||||||
echo " --builddir absolute-pathname"
|
echo " --builddir absolute-pathname"
|
||||||
echo " --configs \"config-file list\""
|
echo " --configs \"config-file list\""
|
||||||
|
echo " --datestamp string"
|
||||||
echo " --duration minutes"
|
echo " --duration minutes"
|
||||||
echo " --rcu-kvm absolute-pathname"
|
echo " --rcu-kvm absolute-pathname"
|
||||||
echo " --results absolute-pathname"
|
echo " --results absolute-pathname"
|
||||||
@ -98,6 +100,11 @@ do
|
|||||||
configs="$2"
|
configs="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--datestamp)
|
||||||
|
checkarg --datestamp "(relative pathname)" "$#" "$2" '^[^/]*$' '^--'
|
||||||
|
ds=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--duration)
|
--duration)
|
||||||
checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' error
|
checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' error
|
||||||
dur=$2
|
dur=$2
|
||||||
@ -147,13 +154,12 @@ if test -z "$resdir"
|
|||||||
then
|
then
|
||||||
resdir=$KVM/res
|
resdir=$KVM/res
|
||||||
mkdir $resdir || :
|
mkdir $resdir || :
|
||||||
ds=`date +%Y.%m.%d-%H:%M:%S`
|
else
|
||||||
|
mkdir -p "$resdir" || :
|
||||||
|
fi
|
||||||
mkdir $resdir/$ds
|
mkdir $resdir/$ds
|
||||||
echo Datestamp: $ds
|
echo Datestamp: $ds
|
||||||
else
|
|
||||||
mkdir -p "$resdir"
|
|
||||||
ds=""
|
|
||||||
fi
|
|
||||||
pwd > $resdir/$ds/testid.txt
|
pwd > $resdir/$ds/testid.txt
|
||||||
if test -d .git
|
if test -d .git
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user