Skip to content

Commit

Permalink
PR #8182 from Matan: 2 small fixes to run-unit-tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel authored Jan 19, 2021
2 parents 0549f5e + ee96c2d commit ba91aad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit ba91aad

Please sign in to comment.