From 062244a3b15356defac5d3eee969e330a9447781 Mon Sep 17 00:00:00 2001 From: Don Bright Date: Wed, 23 Nov 2011 22:27:11 -0600 Subject: fix pretty print sysid hash diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py index 6377929..97e99d5 100755 --- a/tests/test_pretty_print.py +++ b/tests/test_pretty_print.py @@ -80,8 +80,10 @@ def read_sysinfo(filename): data = data.strip() + # create 4 letter hash and stick on end of sysid + nondate_data = re.sub("\n.*?ompile date.*?\n","",data) hexhash = hashlib.md5() - hexhash.update(data) + hexhash.update(nondate_data) hexhash = hexhash.hexdigest()[-4:].upper() hash = '' for c in hexhash: hash += chr(ord(c)+97-48) -- cgit v0.10.1