Fix run_proofs script to actually run proofs

This commit is contained in:
Leonardo Alt 2019-06-20 13:49:24 +02:00
parent c71fb76bb2
commit c3ccce9745

View File

@ -2,15 +2,17 @@
set -e
(
REPO_ROOT="$(dirname "$0")"/..
cd "$REPO_ROOT"
git fetch origin
error=0
for new_proof in $(git diff develop --name-only $REPO_ROOT/test/formal/)
for new_proof in $(git diff origin/develop --name-only test/formal/)
do
set +e
echo "Proving $new_proof..."
output=$(python "$REPO_ROOT/$new_proof")
output=$(python "$new_proof")
result=$?
set -e
@ -27,3 +29,4 @@ then
fi
exit $error
)