# Pastebin qzCXQ7cM # Run a pytest on sandbox # $1: Name of test to run (optional, else run all) function pyt { local tests local para if [ "$1" = "-b" ]; then crosfw $b || return 1 shift fi if [ "$1" = "-p" ]; then para="-n$(nproc) -q" shift fi tests="$@" echo $para $tests shift test/py/test.py -B sandbox --build-dir /tmp/b/sandbox ${para} ${tests:+"-k $tests"} $@ }