cgpt: fix unittest failures
The change to sanitize this field broke the unittests slightly.
Also tweak the shebang to pass updated linter checks.
BUG=chromium:644845
TEST=unittest passes
Change-Id: I382fe01f4b7b2dfbc80cc1e922dc1f1cc0d86892
Reviewed-on: https://chromium-review.googlesource.com/442844
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
diff --git a/build_library/cgpt_unittest.py b/build_library/cgpt_unittest.py
index 4a68ca5..a9585eb 100755
--- a/build_library/cgpt_unittest.py
+++ b/build_library/cgpt_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -408,6 +408,7 @@
'base': [
{
'erase_block_size': 262144,
+ 'features': [],
'num': 'metadata',
'page_size': 4096,
'type': 'blank'
@@ -415,6 +416,7 @@
{
'blocks': 512,
'bytes': 262144,
+ 'features': [],
'format': 'ubi',
'fs_bytes': 253952,
'fs_size': "253952",