[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: make test case run with bot
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: make test case run with both python2 and python3 |
Date: |
Sun, 26 Feb 2017 20:23:13 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new a5ed93ab8 make test case run with both python2 and python3
a5ed93ab8 is described below
commit a5ed93ab801ed92f77d1dffd566dff56ac3d6e2e
Author: Florian Dold <address@hidden>
AuthorDate: Sun Feb 26 20:23:08 2017 +0100
make test case run with both python2 and python3
---
src/revocation/test_local_revocation.py.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/revocation/test_local_revocation.py.in
b/src/revocation/test_local_revocation.py.in
index 69e68a197..28257715f 100644
--- a/src/revocation/test_local_revocation.py.in
+++ b/src/revocation/test_local_revocation.py.in
@@ -42,6 +42,7 @@ TEST_REVOCATION_EGO = "revoc_test"
get_clean = subprocess.Popen ([config, '-c', TEST_CONFIGURATION, '-s',
'PATHS', '-o', 'GNUNET_HOME', '-f'], stdout=subprocess.PIPE)
cleandir, x = get_clean.communicate ()
+cleandir = cleandir.decode("utf-8")
cleandir = cleandir.rstrip ('\n').rstrip ('\r')
if os.path.isdir (cleandir):
@@ -64,6 +65,7 @@ try:
sys.stderr.flush ()
idd = subprocess.Popen ([ident, '-d'], stdout=subprocess.PIPE)
rev_key, x = idd.communicate ()
+ rev_key = rev_key.decode("utf-8")
if len (rev_key.split ()) < 3:
raise Exception ("can't get revocation key out of `" + rev_key + "'")
rev_key = rev_key.split ()[2]
@@ -73,6 +75,7 @@ try:
sys.stderr.flush ()
tst = subprocess.Popen ([revoc, '-t', rev_key, '-c', TEST_CONFIGURATION],
stdout=subprocess.PIPE)
output_not_revoked, x = tst.communicate ()
+ output_not_revoked = output_not_revoked.decode("utf-8")
if tst.returncode != 0:
raise Exception ("gnunet-revocation failed to test a key - " + str
(tst.returncode) + ": " + output_not_revoked)
if 'valid' not in output_not_revoked:
@@ -94,6 +97,7 @@ try:
sys.stderr.flush ()
tst = subprocess.Popen ([revoc, '-t', rev_key, '-c', TEST_CONFIGURATION],
stdout=subprocess.PIPE)
output_revoked, x = tst.communicate ()
+ output_revoked = output_revoked.decode("utf-8")
if tst.returncode != 0:
raise Exception ("gnunet-revocation failed to test a revoked key")
if 'revoked' not in output_revoked:
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: make test case run with both python2 and python3,
gnunet <=