summaryrefslogtreecommitdiff
path: root/scripts/update_payload/test_utils.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2015-09-11 17:16:44 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-14 18:53:36 -0700
commit2846677f9ec7725d9cf9513768477c873c19ba78 (patch)
tree61e9a4c2a66d499c0151a4f2b3bdd359b5c04305 /scripts/update_payload/test_utils.py
parent53b62278d049a50c20e6693aeaefe9675ccb8407 (diff)
paycheck: Update generated protobuf code.
This patch updates the generated update_metadata_pb2.py file with the latest changes in the udpate_metadata.proto file. Some other changes in the update_payload library were required to match the changes in the .proto file. BUG=b:23179128 TEST=paycheck unittests Change-Id: I482d67d4a35f69438a26395eea77286994108b7a Reviewed-on: https://chromium-review.googlesource.com/299498 Commit-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Gilad Arnold <garnold@chromium.org>
Diffstat (limited to 'scripts/update_payload/test_utils.py')
-rw-r--r--scripts/update_payload/test_utils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/update_payload/test_utils.py b/scripts/update_payload/test_utils.py
index 4e7881d3..8746fcef 100644
--- a/scripts/update_payload/test_utils.py
+++ b/scripts/update_payload/test_utils.py
@@ -8,6 +8,7 @@ from __future__ import print_function
import cStringIO
import hashlib
+import os
import struct
import subprocess
@@ -21,8 +22,10 @@ class TestError(Exception):
# Private/public RSA keys used for testing.
-_PRIVKEY_FILE_NAME = 'payload-test-key.pem'
-_PUBKEY_FILE_NAME = 'payload-test-key.pub'
+_PRIVKEY_FILE_NAME = os.path.join(os.path.dirname(__file__),
+ 'payload-test-key.pem')
+_PUBKEY_FILE_NAME = os.path.join(os.path.dirname(__file__),
+ 'payload-test-key.pub')
def KiB(count):