From 4171e231535444e86b6361e5c5f5d57bd9e44bbe Mon Sep 17 00:00:00 2001 From: o9000 Date: Mon, 16 Oct 2017 11:09:56 +0200 Subject: [PATCH] Do not run regression tests more than once for a commit --- test/update_test_status.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/update_test_status.sh b/test/update_test_status.sh index 7a3cba2..6734934 100755 --- a/test/update_test_status.sh +++ b/test/update_test_status.sh @@ -11,7 +11,9 @@ exec 2>&1 cd ~/tint2 git reset --hard git pull - +last=$(cat .last-reg-test) +curr=$(git rev-parse --verify HEAD) +[ "$last" == "$curr" ] && exit 0 cd ~/tint2.wiki git reset --hard @@ -27,3 +29,6 @@ cd ~/tint2.wiki git add tests.md git commit -am 'Update test results' git push origin master + +cd ~/tint2 +echo "$curr" > .last-reg-test