[Piglit] [PATCH 3/7] framework: fix outdated comment

Nicolai Hähnle nhaehnle at gmail.com
Wed Oct 11 10:12:51 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

---
 framework/backends/json.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/framework/backends/json.py b/framework/backends/json.py
index c810dcaa5..440202612 100644
--- a/framework/backends/json.py
+++ b/framework/backends/json.py
@@ -223,22 +223,21 @@ def load_results(filename, compression_):
     if not os.path.isdir(filename):
         filepath = filename
     elif (os.path.exists(os.path.join(filename, 'metadata.json')) and
           not os.path.exists(os.path.join(
               filename, 'results.json.' + compression_))):
         # We want to hit this path only if there isn't a
         # results.json.<compressions>, since otherwise we'll continually
         # regenerate values that we don't need to.
         return _resume(filename)
     else:
-        # Look for a compressed result first, then a bare result, finally for
-        # an old main file
+        # Look for a compressed result first, then a bare result.
         for name in ['results.json.{}'.format(compression_), 'results.json']:
             if os.path.exists(os.path.join(filename, name)):
                 filepath = os.path.join(filename, name)
                 break
         else:
             raise exceptions.PiglitFatalError(
                 'No results found in "{}" (compression: {})'.format(
                     filename, compression_))
 
     assert compression_ in compression.COMPRESSORS, \
-- 
2.11.0



More information about the Piglit mailing list