Skip to content
Myr

test

This file

Path

scripts/test

28 lines · 493 bytes

Last changed by

Enforce coverage (#955)Tom Christiebefore adoption0a8b0c6

History of this file

Take it

The walk stopped after 200 commits: lines older than c337938 point at it.

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

line 1why, one step back
1#!/bin/sh

asyncio: Don't wait for the stream to close (#640)Florimond Mancabefore adoptionc337938

lines 2–7why, one step back
2
3export PREFIX=""4if [ -d 'venv' ] ; then5 export PREFIX="venv/bin/"6fi7

Test Suite on GitHub Actions (#907)Tom Christiebefore adoption19bf211

line 8why, one step back
8if [ -z $GITHUB_ACTIONS ]; then

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

line 9why, one step back
9 set +e

asyncio: Don't wait for the stream to close (#640)Florimond Mancabefore adoptionc337938

line 10why, one step back
10 scripts/check

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

lines 11–19why, one step back
11 while [ $? -ne 0 ]; do
12 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 done

asyncio: Don't wait for the stream to close (#640)Florimond Mancabefore adoptionc337938

line 20why, one step back
20fi

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

lines 21–22why, one step back
21
22set -ex

asyncio: Don't wait for the stream to close (#640)Florimond Mancabefore adoptionc337938

lines 23–24why, one step back
23
24${PREFIX}pytest $@

Enforce coverage (#955)Tom Christiebefore adoption0a8b0c6

lines 25–28why, one step back
25
26if [ -z $GITHUB_ACTIONS ]; then27 scripts/coverage28fi