dosage/scripts/mktestscript.sh

15 lines
419 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
2013-02-19 19:25:59 +00:00
# since py.test has no way to rerun only the failed ones
script=test.sh
rm -f "$script"
2013-02-19 19:25:59 +00:00
echo "#!/bin/sh" > "$script"
echo "set -e" >> "$script"
2013-04-03 19:20:50 +00:00
egrep "^F " testresults.txt | cut -b "3-" | sort | awk '{ print "make testall PYTESTOPTS=--tb=short TESTS=" $0; }' >> "$script"
chmod 755 "$script"