Skip to content

Commit 2510895

Browse files
committed
check-kmod-load-unload: add new TOPDIR constant
TOPDIR can be re-used to find other test files. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 0a464ff commit 2510895

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test-case/check-kmod-load-unload.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ set -e
2222
## check kernel log and find no errors
2323
##
2424

25+
TOPDIR="$(dirname "${BASH_SOURCE[0]}")"/..
26+
TOPDIR=$(cd "$TOPDIR" && pwd)
27+
2528
# shellcheck source=case-lib/lib.sh
26-
source "$(dirname "${BASH_SOURCE[0]}")"/../case-lib/lib.sh
29+
source "${TOPDIR}"/case-lib/lib.sh
2730

2831
OPT_NAME['l']='loop_cnt'
2932
OPT_DESC['l']='remove / insert module loop count -- per device'

0 commit comments

Comments
 (0)