Debian Codegraph @

tests/run.py

raw symbols SCIP
1 #!/usr/bin/env python
2
3 from __future__ import print_function
4 from hashlib import sha1
5 from subprocess import Popen, PIPE, STDOUT
6
7 data = open("index.html", "r").read()
8
9 for line in open("cmds.txt", "r"):
10 line = line.strip()
11 p = Popen(['pup', line], stdout=PIPE, stdin=PIPE, stderr=PIPE)
12 h = sha1()
13 h.update(p.communicate(input=data)[0])
14 print("%s %s" % (h.hexdigest(), line))