[Groonga-commit] groonga/groonga at 55fcce5 [master] test: use nproc

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Fri Aug 31 11:32:43 JST 2018


Kouhei Sutou	2018-08-31 11:32:43 +0900 (Fri, 31 Aug 2018)

  Revision: 55fcce53ff169a31a73a66379a1f596dc30b9aca
  https://github.com/groonga/groonga/commit/55fcce53ff169a31a73a66379a1f596dc30b9aca

  Message:
    test: use nproc

  Modified files:
    test/command/run-test.sh

  Modified: test/command/run-test.sh (+1 -1)
===================================================================
--- test/command/run-test.sh    2018-08-31 11:27:46 +0900 (8585142d7)
+++ test/command/run-test.sh    2018-08-31 11:32:43 +0900 (be981dc2a)
@@ -15,7 +15,7 @@ build_top_dir=$(cd -P "$build_top_dir" 2>/dev/null || cd "$build_top_dir"; pwd)
 n_processors=1
 case `uname` in
   Linux)
-    n_processors="$(grep '^processor' /proc/cpuinfo | wc -l)"
+    n_processors="$(nproc)"
     ;;
   Darwin)
     n_processors="$(/usr/sbin/sysctl -n hw.ncpu)"
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180831/6ff746c7/attachment.htm 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index