Skip to content

Commit

Permalink
Better testing (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Jan 19, 2024
1 parent e54b2ac commit d51f874
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,26 @@ jobs:
- uses: actions/checkout@v3
- run: dnf -y install busybox curl dash ksh mksh nc python /bin/ps sudo tar yash zsh
- run: cd /usr/bin && ln -s busybox ash
- run: ./plano big-test --verbose
- run: ./plano test
env:
PLANO_COLOR: 1
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: ./plano big-test --verbose
- run: ./plano test
env:
PLANO_COLOR: 1
ubuntu:
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- uses: actions/checkout@v3
- run: apt-get -qq update
- run: apt-get -qq install curl netcat python3 sudo
- run: ./plano big-test --verbose
- run: ./plano test
env:
PLANO_COLOR: 1
5 changes: 4 additions & 1 deletion .plano.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ def build():
write("uninstall.sh", uninstall_sh)

@command(passthrough=True)
def test(verbose=False, passthrough_args=[]):
def test(verbose=False, quiet=False, passthrough_args=[]):
build()

if verbose:
passthrough_args.append("--verbose")

if quiet:
passthrough_args.append("--quiet")

import tests

PlanoTestCommand(tests).main(passthrough_args)
Expand Down

0 comments on commit d51f874

Please sign in to comment.