Skip to content

Commit

Permalink
Fix: regex for bind_range test
Browse files Browse the repository at this point in the history
Regex used in bind_range test that does not exclude the cpu-less
node, fix it with appropriate regex.

Signed-off-by: Harish <harish@linux.ibm.com>
  • Loading branch information
harish-24 authored and andikleen committed Mar 1, 2021
1 parent 156e4b1 commit 6ff436b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/bind_range
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ else
HIGHESTCPU=$(grep 'processor' /proc/cpuinfo | tail -n1 | cut -f2 | sed 's/://' )
fi
HIGHESTCPU=$(echo $HIGHESTCPU | cut -f2 -d' ')
HIGHESTNODE=$(numactl -H | grep -Pzo 'node [0-9]* cpus: [0-9]* (.|\n)*node [0-9]* size: [1-9]* MB' | tail -n1 | cut -f2 -d' ')
LOWESTNODE=$(numactl -H | grep -Pzo 'node [0-9]* cpus: [0-9]* (.|\n)*node [0-9]* size: [1-9]* MB' | head -n1 | cut -f2 -d' ')
HIGHESTNODE=$(numactl -H | grep -Pzo 'node [0-9]* cpus: [0-9].*(.|\n)node [0-9]* size: [1-9].* MB' | tail -n1 | cut -f2 -d' ')
LOWESTNODE=$(numactl -H | grep -Pzo 'node [0-9]* cpus: [0-9].*(.|\n)node [0-9]* size: [1-9].* MB' | head -n1 | cut -f2 -d' ')

get_mask

Expand Down

0 comments on commit 6ff436b

Please sign in to comment.