lightweight
com.atproto.sync.listReposByCollection
1#!/bin/bash
2
3# with all the db setup/teardown, this suite runs best with 3x cpu jobs for me
4cpus=$(sysctl -n hw.logicalcpu 2>/dev/null || nproc 2>/dev/null)
5jobs_arg=$( [ -n "$cpus" ] && echo "-j $(( cpus * 3 ))" )
6
7# strip BEL chars that are noisy in some terminals, without losing everything
8# shellcheck disable=SC2086 # $jobs_arg intentionally unquoted
9cargo nextest run --color=always $jobs_arg "$@" 2>&1 | tr -d '\007'
10
11exit "${PIPESTATUS[0]}"