cmake: Halt generation when python not present and tests enabled.

BUG=aomedia:1243

Change-Id: Iaa3b239cf78d62432f61ad166e9c242519f6530f
diff --git a/test/test.cmake b/test/test.cmake
index 7722242f..d1dbe1b 100644
--- a/test/test.cmake
+++ b/test/test.cmake
@@ -328,8 +328,10 @@
 if (CONFIG_UNIT_TESTS)
   find_package(PythonInterp)
   if (NOT PYTHONINTERP_FOUND)
-    message(WARNING "--- Unit tests disabled: Python not found.")
-    set(CONFIG_UNIT_TESTS 0)
+    message(FATAL_ERROR
+            "--- Unit tests require Python, rerun cmake with "
+            "-DCONFIG_UNIT_TESTS=0 to avoid this error, or install Python and "
+            "make sure it's in your PATH.")
   endif ()
 
   if (MSVC)