Skip to content

Commit

Permalink
Merge pull request #1388 from xnoguer/issue-1367
Browse files Browse the repository at this point in the history
Fixing test on kernel major and minor version (FILE-6344). Issue 1367
  • Loading branch information
mboelen committed May 14, 2024
2 parents 1773db0 + 68da1d2 commit 65ac3e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/tests_filesystems
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,13 @@
LINUX_KERNEL_MAJOR=$(echo $OS_KERNELVERSION | ${AWKBINARY} -F. '{print $1}')
LINUX_KERNEL_MINOR=$(echo $OS_KERNELVERSION | ${AWKBINARY} -F. '{print $2}')
if [ -n "${LINUX_KERNEL_MAJOR}" -a -n "${LINUX_KERNEL_MINOR}" ]; then
if [ ${LINUX_KERNEL_MAJOR} -ge 3 -a ${LINUX_KERNEL_MINOR} -ge 3 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
if [ ${LINUX_KERNEL_MAJOR} -ge 3 -a ${LINUX_KERNEL_MINOR} -ge 3 ]; then
PREQS_MET="YES";
elif [ ${LINUX_KERNEL_MAJOR} -ge 4 ]; then
PREQS_MET="YES";
else
PREQS_MET="NO";
fi
else
PREQS_MET="NO";
fi
Expand Down

0 comments on commit 65ac3e6

Please sign in to comment.