test_pictures.py will now look for render_pictures.exe and skdiff.exe
authorkeyar@chromium.org <keyar@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 20 Aug 2012 17:33:06 +0000 (17:33 +0000)
committerkeyar@chromium.org <keyar@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 20 Aug 2012 17:33:06 +0000 (17:33 +0000)
Before it was not and so was failing on Windows.

Review URL: https://codereview.appspot.com/6468043

git-svn-id: http://skia.googlecode.com/svn/trunk@5191 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/test_pictures.py

index 74684ef..b4ae2bf 100644 (file)
@@ -42,7 +42,11 @@ def FindPathToProgram(program):
     trunk_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                               os.pardir))
     possible_paths = [os.path.join(trunk_path, 'out', 'Release', program),
-                      os.path.join(trunk_path, 'out', 'Debug', program)]
+                      os.path.join(trunk_path, 'out', 'Debug', program),
+                      os.path.join(trunk_path, 'out', 'Release',
+                                   program + ".exe"),
+                      os.path.join(trunk_path, 'out', 'Debug',
+                                   program + ".exe")]
     for try_path in possible_paths:
         if os.path.isfile(try_path):
             return try_path