From a7b28faeda429b5fd0532a003d598b8e7ca8354b Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sat, 14 Mar 2026 01:22:54 +0000 Subject: [PATCH] chore: auto format code --- scripts/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 6de57ba..54b02f7 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -103,8 +103,8 @@ if command -v bats > /dev/null 2>&1 && [ -d "tests" ]; then # Cap at 6 jobs to balance speed vs. system load during CI. bats_opts=() if command -v parallel > /dev/null 2>&1 && bats --help 2>&1 | grep -q -- "--jobs"; then - _ncpu="$(sysctl -n hw.logicalcpu 2>/dev/null || nproc 2>/dev/null || echo 4)" - _jobs="$(( _ncpu > 6 ? 6 : (_ncpu < 2 ? 2 : _ncpu) ))" + _ncpu="$(sysctl -n hw.logicalcpu 2> /dev/null || nproc 2> /dev/null || echo 4)" + _jobs="$((_ncpu > 6 ? 6 : (_ncpu < 2 ? 2 : _ncpu)))" # --no-parallelize-within-files ensures each test file's tests run # sequentially (they share a $HOME set by setup_file and are not safe # to run concurrently). Parallelism is only across files.