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>
This commit is contained in:
Johannes Berg 2014-01-14 10:38:33 +01:00 committed by Jouni Malinen
parent fe8691248d
commit fd77e594a4

View file

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