From 05736da8c6b237eb8e2de178381d56ea9fe76c21 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 11 Dec 2015 17:44:23 +0100 Subject: [PATCH] tests: vm: Honor EPATH in uevent.sh 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 --- 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 d52f7fcc1..76e31e76d 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