[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix test failure introduced
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix test failure introduced by latest configuration parser fix, avoid unnecessary copying around of the configuration file |
Date: |
Mon, 26 Jun 2017 09:17:05 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 54ef397f1 fix test failure introduced by latest configuration parser
fix, avoid unnecessary copying around of the configuration file
54ef397f1 is described below
commit 54ef397f1578ee8194c32bcf2d0a09f14afd9b64
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jun 26 09:16:44 2017 +0200
fix test failure introduced by latest configuration parser fix, avoid
unnecessary copying around of the configuration file
---
src/dht/test_dht_tools.py.in | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/src/dht/test_dht_tools.py.in b/src/dht/test_dht_tools.py.in
index 5ceabbfad..f5dd14f67 100644
--- a/src/dht/test_dht_tools.py.in
+++ b/src/dht/test_dht_tools.py.in
@@ -36,18 +36,16 @@ else:
put = './gnunet-dht-put'
arm = 'gnunet-arm'
-tf, tempcfg = tempfile.mkstemp (prefix='test_dht_api_peer1.')
-os.close (tf)
-
-run_get = [get, '-c', tempcfg]
-run_put = [put, '-c', tempcfg]
-run_arm = [arm, '-c', tempcfg]
+cfgfile = 'test_dht_api_peer1.conf'
+
+run_get = [get, '-c', cfgfile]
+run_put = [put, '-c', cfgfile]
+run_arm = [arm, '-c', cfgfile]
debug = os.getenv ('DEBUG')
if debug:
run_arm += [debug.split (' ')]
def cleanup (exitcode):
- os.remove (tempcfg)
sys.exit (exitcode)
def sub_run (args, want_stdo = True, want_stde = False, nofail = False):
@@ -104,7 +102,6 @@ def print_only_failer (command, rc, stdo, stde, normal):
print ("FAIL: expected error while running {}\nCommand output
was:\n{}\n{}".format (command, stdo, stde))
cleanup (1)
-shutil.copyfile ('test_dht_api_peer1.conf', tempcfg)
print ("TEST: Starting ARM...", end='')
r_arm (['-s'], failer = end_arm_failer, want_stdo = False, want_stde = False)
--
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: fix test failure introduced by latest configuration parser fix, avoid unnecessary copying around of the configuration file,
gnunet <=