checker: Don't allow paths to repo roots.

- All callers (Recipes) should pass full paths to config
protos, so supporting paths to repo roots is no longer
necessary.

BUG=chromium:1058057
TEST=python unittests

Change-Id: I9eb5bd8c550f64a8743eec62f67b955e496ec7a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/config/+/2095525
Reviewed-by: Sean McAllister <smcallis@google.com>
Reviewed-by: David Burger <dburger@chromium.org>
Commit-Queue: Andrew Lamb <andrewlamb@chromium.org>
Tested-by: Andrew Lamb <andrewlamb@chromium.org>
diff --git a/payload_utils/checker/io_utils_test.py b/payload_utils/checker/io_utils_test.py
index 2059b65..d8f00d0 100644
--- a/payload_utils/checker/io_utils_test.py
+++ b/payload_utils/checker/io_utils_test.py
@@ -19,11 +19,11 @@
   def setUp(self):
     self.config = ConfigBundle(
         programs=ProgramList(value=[Program(name='TestProgram1')]))
-    self.repo_path = tempfile.mkdtemp()
+    repo_path = tempfile.mkdtemp()
 
-    os.mkdir(os.path.join(self.repo_path, 'generated'))
+    os.mkdir(os.path.join(repo_path, 'generated'))
 
-    self.config_path = os.path.join(self.repo_path, 'generated',
+    self.config_path = os.path.join(repo_path, 'generated',
                                     'config.binaryproto')
     with open(self.config_path, 'wb') as f:
       f.write(self.config.SerializeToString())
@@ -31,9 +31,3 @@
   def test_read_config(self):
     """Tests the binary proto can be read."""
     self.assertEqual(io_utils.read_config(self.config_path), self.config)
-
-  def test_read_config_repo_path(self):
-    """Tests that the binary proto can be read when a repo path is passed."""
-    with self.assertWarnsRegex(FutureWarning,
-                               'Passing a path to a repo root is deprecated'):
-      self.assertEqual(io_utils.read_config(self.repo_path), self.config)