summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/test_pretty_print.py4
1 files changed, 3 insertions, 1 deletions
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)
contact: Jan Huwald // Impressum