]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lscpu) use long options to improve test coverage report
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 22 Jan 2026 03:25:53 +0000 (22:25 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 30 Jan 2026 01:08:36 +0000 (20:08 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
tests/ts/lscpu/lscpu

index 03249c335df40933f9da5e00b7de9fbfac39e70d..56b1684cd76faae5aadea9461f519c672ca5c9d0 100755 (executable)
@@ -36,17 +36,17 @@ for dump in $(ls $TS_SELF/dumps/*.tar.gz | sort); do
        tar -C $dumpdir -zxf $dump
 
        # Architecture information is not applicable with -s.
-       "${TS_CMD_LSCPU}" -s "${dumpdir}/${name}" | \
+       "${TS_CMD_LSCPU}" --sysroot "${dumpdir}/${name}" | \
                grep -v "Architecture" >> ${TS_OUTPUT} 2>> $TS_ERRLOG
 
        echo >>"${TS_OUTPUT}"
 
-       "${TS_CMD_LSCPU}" -p -s "${dumpdir}/${name}" \
+       "${TS_CMD_LSCPU}" --parse --sysroot "${dumpdir}/${name}" \
                 >> ${TS_OUTPUT} 2>> $TS_ERRLOG
 
        echo >>"${TS_OUTPUT}"
 
-       "${TS_CMD_LSCPU}" -p -y -s "${dumpdir}/${name}" \
+       "${TS_CMD_LSCPU}" --parse --physical --sysroot "${dumpdir}/${name}" \
                 >> ${TS_OUTPUT} 2>> $TS_ERRLOG
 
        if [[ ! -e "${dumpdir}/${name}/sys/kernel/cpu_byteorder" ]]; then