test/update_test_status.sh (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#!/bin/bash export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin set -e set -x [ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || : exec > ~/tint2.runner-test.log exec 2>&1 cd ~/tint2 git reset --hard git pull last=$(cat .last-reg-test || true) curr=$(git rev-parse --verify HEAD) [ "$last" == "$curr" ] && exit 0 cd ~/tint2.wiki git reset --hard git pull cd ~/tint2/test ~/tint2/test/regression.py > ~/tint2.wiki/tests.tmp.md cat ~/tint2.wiki/tests.tmp.md > ~/tint2.wiki/tests.md rm ~/tint2.wiki/tests.tmp.md cd ~/tint2.wiki git add tests.md git commit -am 'Update test results' git push origin master cd ~/tint2 echo "$curr" > .last-reg-test |