@@ -545,20 +545,27 @@ test_expect_success 'modprobe fails if task raises exception' '
545545 grep "next:.*test exception" output${seq}
546546'
547547test_expect_success ' modprobe: FLUX_MODPROBE_PATH works' '
548- FLUX_MODPROBE_PATH=$(pwd) \
548+ FLUX_MODPROBE_PATH=/test/path \
549549 flux modprobe rc1 --dry-run --verbose >path.out 2>&1 &&
550- grep "checking $(pwd)" path.out &&
550+ test_debug "echo libexecdir=$(flux config builtin libexecdir)" &&
551+ test_debug "echo datadir=$(flux config builtin datadir)" &&
552+ test_debug "grep checking path.out" &&
553+ test_debug "echo =-=-=" &&
554+ grep "checking /test/path/modprobe" path.out &&
551555 test_must_fail \
552- grep $(flux config builtin libexecdir )/modprobe/modprobe.d path.out &&
556+ grep $(flux config builtin datadir )/modprobe/modprobe.d path.out &&
553557 test_must_fail \
554558 grep $(flux config builtin libexecdir)/modprobe/rc1.d path.out
555559'
556560test_expect_success ' modprobe: FLUX_MODPROBE_PATH_APPEND works' '
557- FLUX_MODPROBE_PATH_APPEND=$(pwd) \
561+ FLUX_MODPROBE_PATH_APPEND=/test/path \
558562 flux modprobe rc1 --dry-run --verbose >path-append.out 2>&1 &&
559- test_debug "cat path-append.out" &&
560- grep "checking $(pwd)" path-append.out &&
561- grep $(flux config builtin libexecdir)/modprobe/modprobe.d path-append.out &&
563+ test_debug "echo libexecdir=$(flux config builtin libexecdir)" &&
564+ test_debug "echo datadir=$(flux config builtin datadir)" &&
565+ test_debug "grep checking path-append.out" &&
566+ test_debug "echo =-=-=" &&
567+ grep "checking /test/path/modprobe" path-append.out &&
568+ grep $(flux config builtin datadir)/modprobe/modprobe.d path-append.out &&
562569 grep $(flux config builtin libexecdir)/modprobe/rc1.d path-append.out
563570'
564571test_expect_success ' modprobe: detects missing required modprobe.toml keys' '
0 commit comments