Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 847bfd25 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
parent c87b9c60
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -50,11 +50,13 @@ configs=" sysidleY.2013.06.19a \
	  PT2-NH \
	  NT1-nh \
	  NT3-NH"
ds=`date +%Y.%m.%d-%H:%M:%S`

usage () {
	echo "Usage: $scriptname optional arguments:"
	echo "       --builddir absolute-pathname"
	echo "       --configs \"config-file list\""
	echo "       --datestamp string"
	echo "       --duration minutes"
	echo "       --rcu-kvm absolute-pathname"
	echo "       --results absolute-pathname"
@@ -98,6 +100,11 @@ do
		configs="$2"
		shift
		;;
	--datestamp)
		checkarg --datestamp "(relative pathname)" "$#" "$2" '^[^/]*$' '^--'
		ds=$2
		shift
		;;
	--duration)
		checkarg --duration "(minutes)" $# "$2" '^[0-9]*$' error
		dur=$2
@@ -147,13 +154,12 @@ if test -z "$resdir"
then
	resdir=$KVM/res
	mkdir $resdir || :
	ds=`date +%Y.%m.%d-%H:%M:%S`
	mkdir $resdir/$ds
	echo Datestamp: $ds
else
	mkdir -p "$resdir"
	ds=""
	mkdir -p "$resdir" || :
fi
mkdir $resdir/$ds
echo Datestamp: $ds

pwd > $resdir/$ds/testid.txt
if test -d .git
then