23892ce1ad
This change implements unit tests for the Spyglass XLS plugin CLI. Change-Id: I0761f8508f3134b1ffb77e78543a72bf1fcf5ca5
13 lines
294 B
Bash
Executable File
13 lines
294 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
posargs=$@
|
|
# cross-platform way to derive the number of logical cores
|
|
readonly num_cores=$(python -c 'import multiprocessing as mp; print(mp.cpu_count())')
|
|
if [ ${#posargs} -ge 1 ]; then
|
|
pytest -k ${posargs} -n $num_cores
|
|
else
|
|
pytest -n $num_cores
|
|
fi
|
|
set +e
|