2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Revise InfiniBand test case

This commit is contained in:
GONG Jie 2017-08-21 13:22:17 +08:00
parent a4c5da3972
commit c6c8370d48

View File

@ -142,6 +142,13 @@ chmod 0755 "/install/custom/netboot/rh/mlnx.${LINUX_DISTRO%%.*}.${LINUX_ARCH}.po
rm -rf "${OSIMAGE_OTHERPKGDIR}"
mkdir -p "${OSIMAGE_OTHERPKGDIR}"
mkdir -p "${OSIMAGE_OTHERPKGDIR}"/dkms
[ -f "${DKMS_RPM}" ]
[ "$?" -ne "0" ] && echo "File ${DKMS_RPM} not found." >&2 && exit 1
cp "${DKMS_RPM}" "${OSIMAGE_OTHERPKGDIR}/dkms"
( cd "${OSIMAGE_OTHERPKGDIR}" && createrepo . )
rm -rf "${OSIMAGE_ROOTIMGDIR}"
genimage "${OSIMAGE_NAME}"
@ -170,7 +177,7 @@ sleep 5
xdsh "${COMPUTE_NODE}" date
[ "$?" -ne "0" ] && echo "Failed connect to compute node via SSH." >&2 && exit 1
#xdsh "${COMPUTE_NODE}" 'rpm -q cuda' | grep ': cuda-'
#[ "$?" -ne "0" ] && echo "CUDA installation checking failed" >&2 && exit 1
xdsh "${COMPUTE_NODE}" 'rpm -qa' | grep 'mlnx'
[ "$?" -ne "0" ] && echo "MLNX OFED installation checking failed" >&2 && exit 1
exit 0