Skip to content

Commit

Permalink
Issue #178 more debug info on test
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Dec 10, 2021
1 parent 77ae547 commit a34dde1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/camera/test_liver_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,18 @@ def test_overlay_liver_points(setup_vtk_overlay_window):
if not os.path.exists(output_name):
os.mkdir(output_name)

reference_image = cv2.imread('tests/data/liver/fig06_case1b_overlay.png')
ref_image_path = 'tests/data/liver/fig06_case1b_overlay.png'
# We aren't using 'proper' hardware rendering on GitHub CI, so skip
in_github_ci = os.environ.get('CI')
if in_github_ci:
reference_image = cv2.imread('tests/data/liver/fig06_case1b_overlay_for_ci.png')
ref_image_path = 'tests/data/liver/fig06_case1b_overlay_for_ci.png'
if sys.platform.startswith("linux"):
reference_image = cv2.imread('tests/data/liver/fig06_case1b_overlay_for_linux_ci.png')
refimage_path = 'tests/data/liver/fig06_case1b_overlay_for_linux_ci.png'

print ("\nenviron = " , os.environ.get('CI'))
print ("platform = ", sys.platform)
print ("using : ", ref_image_path)
reference_image = cv2.imread(ref_image_path)
#pytest.skip("Don't run rendering test on GitHub CI")

intrinsics_file = 'tests/data/liver/calib.left.intrinsics.txt'
Expand Down

0 comments on commit a34dde1

Please sign in to comment.