From 97be7f57fb7d0a9868c41156a77496048b731181 Mon Sep 17 00:00:00 2001 From: Joe Lawrence Date: Mon, 9 Jan 2017 13:51:32 -0500 Subject: [PATCH] testing: add full path for /sbin executables "/sbin" might not be in the user's path, so prefix callouts to such utilities with their full path. --- test/integration/kpatch-test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/kpatch-test b/test/integration/kpatch-test index d674deb..bb6258c 100755 --- a/test/integration/kpatch-test +++ b/test/integration/kpatch-test @@ -120,12 +120,12 @@ log() { } unload_all() { - for i in `lsmod |egrep '^kpatch' |awk '{print $1}'`; do + for i in `/sbin/lsmod |egrep '^kpatch' |awk '{print $1}'`; do if [[ $i != kpatch ]]; then $KPATCH unload $i >> $LOG 2>&1 || error "\"kpatch unload $i\" failed" fi done - if lsmod |egrep -q '^kpatch'; then + if /sbin/lsmod |egrep -q '^kpatch'; then $RMMOD kpatch >> $LOG 2>&1 || error "\"rmmod kpatch\" failed" fi }