dosage/scripts/mktestscript.sh

13 lines
353 B
Bash
Raw Normal View History

#!/bin/sh
2013-02-13 05:28:35 +00:00
# Copyright (C) 2012-2013 Bastian Kleineidam
set -e
set -u
# generates a convenience test script from failed tests
script=test.sh
rm -f "$script"
echo "#!/bin/sh -e" > "$script"
2012-12-07 23:45:18 +00:00
egrep -v "^\. " testresults.txt | egrep "^F " | cut -b "3-" | sort | awk '{ print "make test PYTESTOPTS=--tb=short TESTS=" $0; }' >> "$script"
chmod 755 "$script"