summaryrefslogtreecommitdiff
path: root/framework/backends
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-06-22 15:03:08 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-07-21 15:15:55 -0700
commita3f7113b96aa5576ee15df8155cc0d056e8efb5a (patch)
treeb4ac5d2fb87d4db6d407288cbcce7d487ac093be /framework/backends
parentfe3251bbdde4e2d2d3c3d83a23700de40ba496f7 (diff)
framework: Fix the same bug for resume in the previous commit
The resume path duplicates the 2 lines of code, so the same fix is required there. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'framework/backends')
-rw-r--r--framework/backends/json.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/backends/json.py b/framework/backends/json.py
index 98689cc09..dd08bf053 100644
--- a/framework/backends/json.py
+++ b/framework/backends/json.py
@@ -290,8 +290,9 @@ def _resume(results_dir):
# Load all of the test names and added them to the test list
tests_dir = os.path.join(results_dir, 'tests')
- file_list = sorted(os.listdir(tests_dir),
- key=lambda p: int(os.path.splitext(p)[0]))
+ file_list = sorted(
+ (l for l in os.listdir(tests_dir) if l.endswith('.json')),
+ key=lambda p: int(os.path.splitext(p)[0]))
for file_ in file_list:
with open(os.path.join(tests_dir, file_), 'r') as f: