summaryrefslogtreecommitdiffstats
path: root/tester
diff options
context:
space:
mode:
Diffstat (limited to 'tester')
-rw-r--r--tester/rt/test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tester/rt/test.py b/tester/rt/test.py
index 2b5ad85..0e22002 100644
--- a/tester/rt/test.py
+++ b/tester/rt/test.py
@@ -329,13 +329,14 @@ def generate_yaml_report(args, reports, start_time, end_time,
def get_hash512(exe):
""" returns SHA512 hash string of a given binary file passed as argument """
+ import base64
import hashlib
hash = hashlib.sha512()
with open(exe, "rb") as f:
for byte_block in iter(lambda: f.read(4096), b""):
hash.update(byte_block)
- return hash.hexdigest()
+ return base64.urlsafe_b64encode(hash.digest()).decode("ascii")
report_formatters = {