on xenial help sign in
add very specific check that GRID_UNIT_PX has been set.
377787aChristopher Lee
tests/autopilot/unity8/__init__.py+6−1
@@ -85,4 +85,9 @@ def get_unity8_binary_path():
85
85
86
86
87def get_grid_size():
87def get_grid_size():
88− os.getenv('GRID_UNIT_PX')
88+ grid_size = os.getenv('GRID_UNIT_PX')
89+ if grid_size is None:
90+ raise RuntimeError(
91+ "Environment variable GRID_UNIT_PX has not been set."
92+ )
93+ return int(grid_size)