gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 02/08: unset XDG vars in test explicitly in case t


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 02/08: unset XDG vars in test explicitly in case test is run by hand
Date: Tue, 19 Feb 2019 02:02:04 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

commit f53c0c9eb2a3f6a2a319d510f6ba9431e2f54925
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Feb 19 01:14:27 2019 +0100

    unset XDG vars in test explicitly in case test is run by hand
---
 src/integration-tests/gnunet_testing.py.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/integration-tests/gnunet_testing.py.in 
b/src/integration-tests/gnunet_testing.py.in
index 75fffb1ab..c9342ecf0 100644
--- a/src/integration-tests/gnunet_testing.py.in
+++ b/src/integration-tests/gnunet_testing.py.in
@@ -178,7 +178,7 @@ class StatisticsCondition(Condition):
             fail = ""
             op = " == "
         if (((self.fulfilled == False) and (failed_only == True)) or 
(failed_only == False)):
-            logger.debug('%s %s condition in subsystem %s: %s: (expected/real 
value) %s %s %s %s', self.peer.id[:4].decode("utf-8"), peer.cfg, 
self.subsystem.ljust(12), self.name.ljust(30), self.value, op, self.result, 
fail)
+            logger.debug('%s %s condition in subsystem %s: %s: (expected/real 
value) %s %s %s %s', self.peer.id[:4].decode("utf-8"), self.peer.cfg, 
self.subsystem.ljust(12), self.name.ljust(30), self.value, op, self.result, 
fail)
         return self.fulfilled
 
 
@@ -272,6 +272,9 @@ class Peer(object):
             return False
 
     def start(self):
+        os.unsetenv ("XDG_CONFIG_HOME")
+        os.unsetenv ("XDG_DATA_HOME")
+        os.unsetenv ("XDG_CACHE_HOME")
         self.test.p("Starting peer using cfg " + self.cfg)
         try:
             server = subprocess.Popen([self.test.gnunetarm, '-sq', '-c', 
self.cfg])

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]