fix sanity test

Resolves: bz2025375

Signed-off-by: Ping Fang <pifang@redhat.com>
This commit is contained in:
Ping Fang 2021-11-30 23:20:02 +08:00
parent 1b87c67ee1
commit c8bb44bdbd

View File

@ -78,8 +78,8 @@ rlJournalStart
rlLog "`uname -r`" rlLog "`uname -r`"
NUMA_NODES=`lscpu -e=node | grep -v NODE | sort -u | wc -l` NUMA_NODES=`lscpu -e=node | grep -v NODE | sort -u | wc -l`
CPU_FROM_NODE0=`lscpu -e=node,cpu | egrep '^0' | awk '{print $2}' | head -n 1` CPU_FROM_NODE0=`lscpu -e=node,cpu | egrep '^[[:space:]]*0' | awk '{print $2}' | head -n 1`
CPU_FROM_NODE1=`lscpu -e=node,cpu | sed '1d' | egrep '^[^0]' | awk '{print $2}' | head -n 1` CPU_FROM_NODE1=`lscpu -e=node,cpu | sed '1d' | egrep '^[[:space:]]*[1-9]+' | awk '{print $2}' | head -n 1`
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest "check machine" rlPhaseStartTest "check machine"