Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 small fixes to test running #8182

Merged
merged 2 commits into from
Jan 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions unit-tests/py/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def print_stack():
"""
Function for printing the current call stack. Used when an assertion fails
"""
test_py_path = os.sep + "unit-tests" + os.sep + "py" + os.sep + "test.py"
for line in traceback.format_stack():
if test_py_path in line: # avoid printing the lines of calling to this function
continue
print(line)

"""
Expand Down
2 changes: 1 addition & 1 deletion unit-tests/run-unit-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def out(*args):
if target:
logdir = target + os.sep + 'unit-tests'
else: # no test executables were found. We put the logs directly in build directory
logdir = librealsense + os.sep + 'build'
logdir = librealsense + os.sep + 'build' + os.sep + 'unit-tests'
os.makedirs( logdir, exist_ok = True )
n_tests = 0

Expand Down