dosage/scripts/mktestscript.sh
Bastian Kleineidam 7a98cf7599 Updated copyright.
2013-02-13 06:28:35 +01:00

12 lines
353 B
Bash
Executable file

#!/bin/sh
# 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"
egrep -v "^\. " testresults.txt | egrep "^F " | cut -b "3-" | sort | awk '{ print "make test PYTESTOPTS=--tb=short TESTS=" $0; }' >> "$script"
chmod 755 "$script"