tests: vm: Honor EPATH in uevent.sh
authorJohannes Berg <johannes.berg@intel.com>
Fri, 11 Dec 2015 16:44:23 +0000 (17:44 +0100)
committerJouni Malinen <j@w1.fi>
Thu, 17 Dec 2015 22:24:51 +0000 (00:24 +0200)
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@intel.com>
tests/hwsim/vm/uevent.sh

index d52f7fc..76e31e7 100755 (executable)
@@ -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