summaryrefslogtreecommitdiff
path: root/src/integration-tests/gnunet_testing.py.in
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-19 01:14:27 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-19 01:14:27 +0100
commitf53c0c9eb2a3f6a2a319d510f6ba9431e2f54925 (patch)
tree16981718882d21b4df95f88b1c2dd555b25a83b2 /src/integration-tests/gnunet_testing.py.in
parente902386cfa3e8f88af4673c0d41c1aecafd9613e (diff)
unset XDG vars in test explicitly in case test is run by hand
Diffstat (limited to 'src/integration-tests/gnunet_testing.py.in')
-rw-r--r--src/integration-tests/gnunet_testing.py.in5
1 files changed, 4 insertions, 1 deletions
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])