[PATCH] hwsim tests: vm: read a config file from $HOME

Johannes Berg johannes
Tue Jan 14 01:38:33 PST 2014


From: Johannes Berg <johannes.berg at intel.com>

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 at intel.com>
---
 tests/hwsim/vm/vm-run.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/hwsim/vm/vm-run.sh b/tests/hwsim/vm/vm-run.sh
index dc643cb..616073f 100755
--- a/tests/hwsim/vm/vm-run.sh
+++ b/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)"
-- 
1.8.5.1




More information about the Hostap mailing list