Add ANY logic for local builds.

For ANY paths, we find the first dev or test image that exists in the
local dir and return that path. This is useful for developers who may
have a dev or test image and more flexible than our previous assumption
that all devs wanted test images.

BUG=chromium:275702
TEST=unittests + 2 updates via AU client one with just a dev image, and one
with just a test image. Both succeeded!

Change-Id: I97897ab10804df4f77e40806706f05a647db8eb6
Reviewed-on: https://chromium-review.googlesource.com/66208
Tested-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
diff --git a/xbuddy_unittest.py b/xbuddy_unittest.py
old mode 100644
new mode 100755
index 24c765f..517c5a7
--- a/xbuddy_unittest.py
+++ b/xbuddy_unittest.py
@@ -134,6 +134,10 @@
                       self.mock_xb._InterpretPath,
                       path=path)
 
+    path = 'local/parrot/latest/ANY'
+    expected = ('ANY', 'parrot', 'latest', True)
+    self.assertEqual(self.mock_xb._InterpretPath(path=path), expected)
+
 
   def testTimestampsAndList(self):
     """Creation and listing of builds according to their timestamps."""