eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1eb82d661fa4e6afb12534ef72e6c29275cc610f
parent 3c708b0e14666a2459fb948cee2a73f71da3e190
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon, 16 Nov 2020 14:25:12 -0800

auto-t: catch exceptions in post_test

Diffstat:
Mtools/test-runner | 18+++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/tools/test-runner b/tools/test-runner @@ -945,15 +945,19 @@ def post_test(ctx, to_copy): ''' Remove copied files, and stop test processes. ''' - for f in to_copy: - if os.path.isdir('/tmp/' + f): - shutil.rmtree('/tmp/' + f) - else: - os.remove('/tmp/' + f) + try: + for f in to_copy: + if os.path.isdir('/tmp/' + f): + shutil.rmtree('/tmp/' + f) + else: + os.remove('/tmp/' + f) - Process(['ifconfig', 'lo', 'down'], wait=True) + Process(['ifconfig', 'lo', 'down'], wait=True) + except Exception as e: + print("Exception thrown in post_test") + finally: + ctx.stop_test_processes() - ctx.stop_test_processes() if ctx.args.valgrind: with open('/tmp/valgrind.log', 'r') as f: dbg(f.read())