2013-02-12 19:56:02 +00:00
|
|
|
#!/bin/sh
|
2013-02-13 05:28:35 +00:00
|
|
|
# Copyright (C) 2012-2013 Bastian Kleineidam
|
2013-02-12 19:56:02 +00:00
|
|
|
set -e
|
2012-11-28 17:15:12 +00:00
|
|
|
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
|
2012-11-28 17:15:12 +00:00
|
|
|
|
|
|
|
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"
|
2012-11-28 17:15:12 +00:00
|
|
|
chmod 755 "$script"
|