History

rcutorture: Eliminate --rcu-kvm argument

The --rcu-kvm argument was intended to allow the scripts to live in an alternate location. Unfortunately, this prevents the kvm.sh script from using common functions until after it finished parsing arguments, because it doesn't know where to find them until then. However, "cp -a" and "ln -s" work pretty well, so lack of an --rcu-kvm argument can be easily worked around. This commit therefore removes this argument.

Paul E. McKenney committed 13 years ago

Commit 2bcdf4e1 parent 14db63f1 file · +1 −14Browse files

Unified · Split

tools/testing/selftests/rcutorture/bin/kvm.sh+1−14
@@ -46,7 +46,6 @@ usage () { · 45 unmodified lines
4646 echo " --duration minutes"
4747 echo " --kversion vN.NN"
4848 echo " --qemu-cmd qemu-system-..."
49− echo " --rcu-kvm absolute-pathname"
5049 echo " --results absolute-pathname"
5150 echo " --relbuilddir relative-pathname"
5251 exit 1
@@ -107,19 +106,6 @@ do · 54 unmodified lines
107106 RCU_QEMU_CMD="$2"; export RCU_QEMU_CMD
108107 shift
109108 ;;
110− --rcu-kvm)
111− checkarg --rcu-kvm "(absolute pathname)" "$#" "$2" '^/' error
112− KVM=$2; export KVM
113− if -z "$gotbuilddir"
114− then
115− builddir=${KVM}/b1
116− fi
117− if -n "$gotrelbuilddir"
118− then
119− builddir=${KVM}/${relbuilddir}
120− fi
121− shift
122− ;;
123109 --relbuilddir)
124110 checkarg --relbuilddir "(relative pathname)" "$#" "$2" '^[^/]*$' '^--'
125111 relbuilddir=$2
@@ -133,6 +119,7 @@ do · 7 unmodified lines
133119 shift
134120 ;;
135121 *)
122+ echo Unknown argument $1
136123 usage
137124 ;;
138125 esac

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t