diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-10 15:54:43 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-10 18:05:15 +0200 |
commit | cf7110f02f793c791b7227bf1579eaaa81d3fd30 (patch) | |
tree | ef57c33ee67c015885402ce9bde62f695541b92e /unittest/conftest.py | |
parent | 84f8f634584e22a557bf50f077fb15967311908d (diff) | |
download | libnitrokey-cf7110f02f793c791b7227bf1579eaaa81d3fd30.tar.gz libnitrokey-cf7110f02f793c791b7227bf1579eaaa81d3fd30.tar.bz2 |
Add DEBUG_L1 level and set it as default for Python tests
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/conftest.py')
-rw-r--r-- | unittest/conftest.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py index 8c9899c..ef4539c 100644 --- a/unittest/conftest.py +++ b/unittest/conftest.py @@ -20,14 +20,17 @@ def C(request): with open(fp, 'r') as f: declarations = f.readlines() + cnt = 0 a = iter(declarations) for declaration in a: if declaration.strip().startswith('NK_C_API'): declaration = declaration.replace('NK_C_API', '').strip() while ';' not in declaration: declaration += (next(a)).strip() - print(declaration) + # print(declaration) ffi.cdef(declaration, override=True) + cnt +=1 + print('Imported {} declarations'.format(cnt)) C = None import os, sys @@ -73,6 +76,7 @@ def C(request): print('Finished') request.addfinalizer(fin) - C.NK_set_debug(True) + # C.NK_set_debug(True) + C.NK_set_debug_level(3) return C |