The "create.sh" test depends on commit commit 0731de0dd95b "libnvdimm, pfn: move 'memory mode' indication to sysfs".
Signed-off-by: Dan Williams <[email protected]> --- test/create.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/create.sh b/test/create.sh index 1a5d7d77bf25..992f2ff48ad0 100755 --- a/test/create.sh +++ b/test/create.sh @@ -13,6 +13,17 @@ err() { exit $rc } +check_min_kver() +{ + local ver="$1" + : "${KVER:=$(uname -r)}" + + [ -n "$ver" ] || return 1 + [[ "$ver" == "$(echo -e "$ver\n$KVER" | sort -V | head -1)" ]] +} + +check_min_kver "4.5" || { echo "kernel $KVER may lack namespace mode attribute"; exit $rc; } + set -e trap 'err $LINENO' ERR _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
