Skip to content

Commit

Permalink
Placeholder logging_tests command
Browse files Browse the repository at this point in the history
  • Loading branch information
lsankar4033 committed Aug 7, 2020
1 parent 75743dd commit 1623489
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions logging_tests/test_fail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import trio
from pyrum import SubprocessConn, Rumor

from .utils import *

@with_rumor
async def run(rumor, args):
return 1
8 changes: 8 additions & 0 deletions logging_tests/test_success.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import trio
from pyrum import SubprocessConn, Rumor

from .utils import with_rumor

@with_rumor
async def run(rumor, args):
return 0
8 changes: 8 additions & 0 deletions steth.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def run_test(args):
teardown_fixture(fixture)


def run_logging_test(args):
for client in SUPPORTED_CLIENTS:
print(f'Testing client {client}')


if __name__ == '__main__':
steth = argparse.ArgumentParser(description='Stethoscope tool for running multi-client Eth2 scenarios')
steth_sub = steth.add_subparsers()
Expand All @@ -83,5 +88,8 @@ def run_test(args):
test.add_argument('-r', '--reuse', default=False, action='store_true', help='reuse running fixtures')
test.set_defaults(func=run_test)

test = steth_sub.add_parser('logging_test', help='Display example logs from ./steth.py test. Useful for testing CI integration')
test.set_defaults(func=run_logging_test)

args = steth.parse_args()
args.func(args)

0 comments on commit 1623489

Please sign in to comment.