nix-super/mk/debug-test.sh

15 lines
210 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eu -o pipefail
test=$1
init=${2-}
dir="$(dirname "${BASH_SOURCE[0]}")"
source "$dir/common-test.sh"
if [ -n "$init" ]; then
(run "$init" 2>/dev/null > /dev/null)
fi
run "$test"