[PATCH] hwsim tests: vm: honour EPATH in uevent.sh

Johannes Berg johannes at sipsolutions.net
Fri Dec 11 08:44:23 PST 2015


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

This is useful for testing CRDA since it means you can
use EPATH to redirect the test scripts to a different
crda binary.

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 tests/hwsim/vm/uevent.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/hwsim/vm/uevent.sh b/tests/hwsim/vm/uevent.sh
index d52f7fcc1127..76e31e76d3be 100755
--- a/tests/hwsim/vm/uevent.sh
+++ b/tests/hwsim/vm/uevent.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+EPATH=$(sed 's/.*EPATH=\([^ ]*\) .*/\1/' /proc/cmdline)
+PATH=/tmp/bin:$EPATH:$PATH
+
 # assume this was a call for CRDA,
 # if not then it won't find a COUNTRY
 # environment variable and exit
-- 
2.6.2




More information about the Hostap mailing list