Skip to content
Myr

test

This file

Path

scripts/test

24 lines · 436 bytes

Last changed by

If `scripts/check` fails then prompt and autofix. (#952)Tom Christiebefore adoption51b70b3

History of this file

Take it

1#!/bin/sh23export PREFIX=""4if [ -d 'venv' ] ; then5    export PREFIX="venv/bin/"6fi78if [ -z $GITHUB_ACTIONS ]; then9    set +e10    scripts/check11    while [ $? -ne 0 ]; do12        read -p "Running 'scripts/check' failed. Do you want to run 'scripts/lint' now? [y/N]  " yn13        case $yn in14           [Yy]* ) :;;15           * ) exit;;16        esac17        scripts/lint18        scripts/check19    done20fi2122set -ex2324${PREFIX}pytest $@