[PATCH] fix numactl test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I apologize if this is already handled, however, a quick google search
didn't help me find any version control systems so I'm submitting here.

In Gentoo we got a bug, where numactl fails tests if it isn't already
installed:

https://bugs.gentoo.org/show_bug.cgi?id=502586

./bind_range: line 92: numactl: command not found
./bind_range: line 93: numactl: command not found

The origin is fairly trivial, it appears that on the noted lines it's
calling "numactl" instead of "../numactl" like it should.  Which means
it will try to use an installed numactl (possibly older) and fail if it
isn't installed at all.

Here is the tested and trivial patch to fix this behavior, please accept it.

Signed-off-by: "Rick Farina <zerochaos@xxxxxxxxxx>"
diff -Naur numactl-2.0.10-orig/test/bind_range
numactl-2.0.10/test/bind_range
--- numactl-2.0.10-orig/test/bind_range	2015-05-03 22:23:31.095600314 -0400
+++ numactl-2.0.10/test/bind_range	2015-05-03 22:25:29.107592557 -0400
@@ -93,8 +93,8 @@

 HIGHESTCPU=$(grep 'processor' /proc/cpuinfo | tail -n1 | cut -f2 -d':')
 HIGHESTCPU=$(echo $HIGHESTCPU | cut -f2 -d' ')
-HIGHESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 | cut
-f2 -d' ')
-LOWESTNODE=$(numactl -H | grep -e 'node [0-9]* cpus' | head -n1 | cut
-f2 -d' ')
+HIGHESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | tail -n1 |
cut -f2 -d' ')
+LOWESTNODE=$(../numactl -H | grep -e 'node [0-9]* cpus' | head -n1 |
cut -f2 -d' ')

 get_mask



Thanks,
Zero

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux