Browse Source

hwsim tests: vm: read a config file from $HOME

The vm-config in the subdirectory is less useful as it
will get removed by "git clean" and similar, so read a
config file from ~/.wpas-vm-config in addition.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg 11 years ago
parent
commit
fd77e594a4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/hwsim/vm/vm-run.sh

+ 1 - 0
tests/hwsim/vm/vm-run.sh

@@ -29,6 +29,7 @@ KVMOUT=ttyS1
 CHANNELS=1
 
 test -f vm-config && . vm-config
+test -f ~/.wpas-vm-config && . ~/.wpas-vm-config
 
 if [ -z "$KERNEL" ] && [ -z "$KERNELDIR" ] ; then
 	echo "You need to set a KERNEL or KERNELDIR (in the environment or vm-config)"