on xenial help sign in
add very specific check that GRID_UNIT_PX has been set.
commit377787a0a26bfbdaaf43cf504d21134e211bb1b1 authorChristopher Lee <chris.lee@canonical.com> dateMon 22 Jul 2013, 14:58 (13 years ago) parent9d197a1
1 file changed+6−1
tests/autopilot/unity8/__init__.py+6−1
tests/autopilot/unity8/__init__.py+6−1
@@ -85,4 +85,9 @@ def get_unity8_binary_path():
8585
8686
8787def 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)